diff options
author | Paul Irofti <pirofti@cvs.openbsd.org> | 2012-04-20 16:36:12 +0000 |
---|---|---|
committer | Paul Irofti <pirofti@cvs.openbsd.org> | 2012-04-20 16:36:12 +0000 |
commit | 8a5214ef8c119cf105de6075d7b8ece1d6fbfb5a (patch) | |
tree | 5ec2cf1a3c05d6d57de79abaf8c58d161329d091 /usr.bin/top | |
parent | 3582235a6fc232c5371d1ec9fceb8555241d5580 (diff) |
Silence warnings. Okay deraadt@.
Diffstat (limited to 'usr.bin/top')
-rw-r--r-- | usr.bin/top/top.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/top/top.c b/usr.bin/top/top.c index 97f965b6d19..4f36aa961fc 100644 --- a/usr.bin/top/top.c +++ b/usr.bin/top/top.c @@ -1,4 +1,4 @@ -/* $OpenBSD: top.c,v 1.76 2011/12/16 14:50:24 jsing Exp $ */ +/* $OpenBSD: top.c,v 1.77 2012/04/20 16:36:11 pirofti Exp $ */ /* * Top users/processes display for Unix @@ -264,8 +264,9 @@ int main(int argc, char *argv[]) { char *uname_field = "USERNAME", *header_text, *env_top; - char *(*get_userid)(uid_t) = username, **preset_argv, **av; - int preset_argc = 0, ac, active_procs, i; + char *(*get_userid)(uid_t) = username; + char **preset_argv = NULL, **av = argv; + int preset_argc = 0, ac = argc, active_procs, i; sigset_t mask, oldmask; time_t curr_time; caddr_t processes; |