diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2003-06-15 16:24:45 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2003-06-15 16:24:45 +0000 |
commit | 16f2fb7e4ecb3476a3bd28b631e5378ee6a103ae (patch) | |
tree | 0b35a1decba01534abd9b339922b360716e957e3 /usr.bin/top/commands.c | |
parent | eac3b9622068e1035c7d1974494a272c26427fe7 (diff) |
use uid_t and fix some sign compare warnings; OK krw@ and deraadt@
Diffstat (limited to 'usr.bin/top/commands.c')
-rw-r--r-- | usr.bin/top/commands.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/top/commands.c b/usr.bin/top/commands.c index 777ed5b02c0..e88892c6359 100644 --- a/usr.bin/top/commands.c +++ b/usr.bin/top/commands.c @@ -1,4 +1,4 @@ -/* $OpenBSD: commands.c,v 1.9 2003/06/13 21:52:24 deraadt Exp $ */ +/* $OpenBSD: commands.c,v 1.10 2003/06/15 16:24:44 millert Exp $ */ /* * Top users/processes display for Unix @@ -317,8 +317,9 @@ show_errors(void) char * kill_procs(char *str) { - int signum = SIGTERM, procnum, uid; + int signum = SIGTERM, procnum; struct sigdesc *sigp; + uid_t uid; char *nptr; /* reset error array */ @@ -381,8 +382,9 @@ kill_procs(char *str) char * renice_procs(char *str) { - int prio, procnum, uid; + uid_t uid; char negate; + int prio, procnum; ERR_RESET; uid = getuid(); |