diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1997-06-23 22:21:50 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1997-06-23 22:21:50 +0000 |
commit | dfeead84e5b3e2b349a06703fdb4ba9cafb2ab94 (patch) | |
tree | f0412471d516ae339a59982ce32158d3789aed53 /usr.bin/systat/main.c | |
parent | f117bcdcb3d1667b3f1b0eda5c6389ba8dce21da (diff) |
Cleanup by Theo and myself. CMDLINE changed to long to make
command line work on 64bit platforms. This is somewhat bogus
and is really just a temporary workaround (there may be a curses bug).
Diffstat (limited to 'usr.bin/systat/main.c')
-rw-r--r-- | usr.bin/systat/main.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/usr.bin/systat/main.c b/usr.bin/systat/main.c index ead475070c0..ebfa4c358b4 100644 --- a/usr.bin/systat/main.c +++ b/usr.bin/systat/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.10 1997/06/16 19:10:15 kstailey Exp $ */ +/* $OpenBSD: main.c,v 1.11 1997/06/23 22:21:47 millert Exp $ */ /* $NetBSD: main.c,v 1.8 1996/05/10 23:16:36 thorpej Exp $ */ /*- @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 6/6/93"; #endif -static char rcsid[] = "$OpenBSD: main.c,v 1.10 1997/06/16 19:10:15 kstailey Exp $"; +static char rcsid[] = "$OpenBSD: main.c,v 1.11 1997/06/23 22:21:47 millert Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -52,9 +52,11 @@ static char rcsid[] = "$OpenBSD: main.c,v 1.10 1997/06/16 19:10:15 kstailey Exp #include <err.h> #include <nlist.h> #include <signal.h> +#include <ctype.h> #include <stdio.h> #include <string.h> #include <unistd.h> +#include <stdlib.h> #include <limits.h> #include "systat.h" @@ -83,11 +85,11 @@ char c; char *namp; char hostname[MAXHOSTNAMELEN]; WINDOW *wnd; -int CMDLINE; +long CMDLINE; static WINDOW *wload; /* one line window for load average */ -static void usage(); +static void usage __P((void)); int main(argc, argv) |