summaryrefslogtreecommitdiffstats
path: root/usr.bin/systat
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2000-04-14 06:39:19 +0000
committerimp <imp@FreeBSD.org>2000-04-14 06:39:19 +0000
commit4721d7ef435f4d79e92d8d98ba9b645bb25993fb (patch)
treec7963b41252b2e47e3e9896854edbbb0300e6576 /usr.bin/systat
parent7fec3d2787608459e561d33aa2c5f4370c7eb11f (diff)
downloadFreeBSD-src-4721d7ef435f4d79e92d8d98ba9b645bb25993fb.zip
FreeBSD-src-4721d7ef435f4d79e92d8d98ba9b645bb25993fb.tar.gz
#include <errno.h> where needed. Kill extern int errno;.
Minor warnings in tip corrected.
Diffstat (limited to 'usr.bin/systat')
-rw-r--r--usr.bin/systat/vmstat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/systat/vmstat.c b/usr.bin/systat/vmstat.c
index 89e78a2..44fdcf9 100644
--- a/usr.bin/systat/vmstat.c
+++ b/usr.bin/systat/vmstat.c
@@ -58,6 +58,7 @@ static const char rcsid[] =
#include <ctype.h>
#include <err.h>
+#include <errno.h>
#include <nlist.h>
#include <paths.h>
#include <signal.h>
@@ -731,7 +732,6 @@ getinfo(s, st)
{
struct devinfo *tmp_dinfo;
int mib[2], size;
- extern int errno;
NREAD(X_CPTIME, s->time, sizeof s->time);
NREAD(X_CPTIME, cur.cp_time, sizeof(cur.cp_time));
OpenPOWER on IntegriCloud