diff options
-rw-r--r-- | machine.h | 5 | ||||
-rw-r--r-- | pg_top.c | 13 |
2 files changed, 2 insertions, 16 deletions
@@ -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); @@ -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 { |