diff options
| author | Philippe Charnier <charnier@FreeBSD.org> | 1997-08-13 06:45:11 +0000 |
|---|---|---|
| committer | Philippe Charnier <charnier@FreeBSD.org> | 1997-08-13 06:45:11 +0000 |
| commit | d8793dfac31358bc82c7de0974dd9a78970dfa5f (patch) | |
| tree | 0e558448bd8a94568c7e45e156eaa76b4b78359d /usr.bin/systat/vmstat.c | |
| parent | a2940c0e75ae4c28015e0581b21a34aba7be64ab (diff) | |
Notes
Diffstat (limited to 'usr.bin/systat/vmstat.c')
| -rw-r--r-- | usr.bin/systat/vmstat.c | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/usr.bin/systat/vmstat.c b/usr.bin/systat/vmstat.c index 1436234c995d..316aa797d990 100644 --- a/usr.bin/systat/vmstat.c +++ b/usr.bin/systat/vmstat.c @@ -32,7 +32,11 @@ */ #ifndef lint +#if 0 static char sccsid[] = "@(#)vmstat.c 8.2 (Berkeley) 1/12/94"; +#endif +static const char rcsid[] = + "$Id$"; #endif /* not lint */ /* @@ -52,15 +56,16 @@ static char sccsid[] = "@(#)vmstat.c 8.2 (Berkeley) 1/12/94"; #include <vm/vm_param.h> -#include <signal.h> -#include <nlist.h> #include <ctype.h> -#include <utmp.h> +#include <err.h> +#include <nlist.h> #include <paths.h> -#include <string.h> +#include <signal.h> #include <stdlib.h> +#include <string.h> #include <time.h> #include <unistd.h> +#include <utmp.h> #include "systat.h" #include "extern.h" @@ -626,10 +631,8 @@ allocinfo(s) { s->intrcnt = (long *) calloc(nintr, sizeof(long)); - if (s->intrcnt == NULL) { - fprintf(stderr, "systat: out of memory\n"); - exit(2); - } + if (s->intrcnt == NULL) + errx(2, "out of memory"); } static void |
