diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1997-08-24 18:37:48 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1997-08-24 18:37:48 +0000 |
commit | 3d4737f4bf505dac666f5e89d5f0826d0a17a002 (patch) | |
tree | 6f36f261f6ece91268bb8360a802772e6a10abf9 | |
parent | f4097d02a58343cb41070cc22d4086ea9f934ee2 (diff) |
Fix compiler warnings.
-rw-r--r-- | usr.bin/top/machine.c | 4 | ||||
-rw-r--r-- | usr.bin/top/screen.c | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/top/machine.c b/usr.bin/top/machine.c index 59e930f3e6e..74c1597005e 100644 --- a/usr.bin/top/machine.c +++ b/usr.bin/top/machine.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machine.c,v 1.4 1997/08/22 07:39:27 downsj Exp $ */ +/* $OpenBSD: machine.c,v 1.5 1997/08/24 18:37:46 millert Exp $ */ /* * top - a top users display for Unix @@ -482,7 +482,7 @@ char *(*get_userid)(); p_wait = EP(pp, e_wmesg); else { snprintf(waddr, sizeof(waddr), "%lx", - (unsigned int)(PP(pp, p_wchan)) & ~KERNBASE); + (unsigned long)(PP(pp, p_wchan)) & ~KERNBASE); p_wait = waddr; } else diff --git a/usr.bin/top/screen.c b/usr.bin/top/screen.c index 35fab3d6b5f..d8322fe9011 100644 --- a/usr.bin/top/screen.c +++ b/usr.bin/top/screen.c @@ -1,4 +1,4 @@ -/* $OpenBSD: screen.c,v 1.2 1997/08/22 07:16:29 downsj Exp $ */ +/* $OpenBSD: screen.c,v 1.3 1997/08/24 18:37:47 millert Exp $ */ /* * Top users/processes display for Unix @@ -24,6 +24,7 @@ #include <sys/ioctl.h> #include <stdio.h> #include <stdlib.h> +#include <string.h> #include <term.h> #include <termios.h> #include <unistd.h> |