summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--machine.h5
-rw-r--r--pg_top.c13
2 files changed, 2 insertions, 16 deletions
diff --git a/machine.h b/machine.h
index 69f7dde..e317152 100644
--- a/machine.h
+++ b/machine.h
@@ -112,13 +112,8 @@ struct process_select
/* routines defined by the machine dependent module */
int machine_init(struct statics *);
void get_system_info(struct system_info *);
-#ifdef __linux__
caddr_t get_process_info(struct system_info *, struct process_select *, int,
struct pg_conninfo_ctx *, int);
-#else
-caddr_t get_process_info(struct system_info *, struct process_select *, int,
- struct pg_conninfo_ctx *);
-#endif /* __linux__ */
char *format_header(char *);
#ifdef __linux__
char *format_next_io(caddr_t);
diff --git a/pg_top.c b/pg_top.c
index e75728a..f3530f5 100644
--- a/pg_top.c
+++ b/pg_top.c
@@ -185,13 +185,9 @@ do_display(struct pg_top_context *pgtctx)
if (pgtctx->mode_remote == 0)
{
get_system_info(&pgtctx->system_info);
-#ifdef __linux__
- processes = get_process_info(&pgtctx->system_info, &pgtctx->ps,
- pgtctx->order_index, &pgtctx->conninfo, pgtctx->mode);
-#else
processes = get_process_info(&pgtctx->system_info, &pgtctx->ps,
- pgtctx->order_index, &pgtctx->conninfo);
-#endif /* __linux__ */
+ pgtctx->order_index, &pgtctx->conninfo,
+ pgtctx->mode);
}
else
{
@@ -995,13 +991,8 @@ main(int argc, char *argv[])
if (pgtctx.mode_remote == 0)
{
get_system_info(&pgtctx.system_info);
-#ifdef __linux__
(void) get_process_info(&pgtctx.system_info, &pgtctx.ps, -1,
&pgtctx.conninfo, pgtctx.mode);
-#else
- (void) get_process_info(&pgtctx.system_info, &pgtctx.ps, -1,
- &pgtctx.conninfo);
-#endif /* __linux__ */
}
else
{