summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2003-06-16 17:24:44 +0000
committermillert <millert@openbsd.org>2003-06-16 17:24:44 +0000
commitcaadece8185c8fdb4e8ea40c100f34c3d5fbac9e (patch)
tree58a4639bf5105bfb655b7bd4cf2c66d2dfe9ca41
parentuse bsd.regress.mk (diff)
downloadwireguard-openbsd-caadece8185c8fdb4e8ea40c100f34c3d5fbac9e.tar.xz
wireguard-openbsd-caadece8185c8fdb4e8ea40c100f34c3d5fbac9e.zip
Add missing #include <err.h>
-rw-r--r--usr.bin/top/screen.c3
-rw-r--r--usr.bin/top/top.c7
2 files changed, 6 insertions, 4 deletions
diff --git a/usr.bin/top/screen.c b/usr.bin/top/screen.c
index 6aa391ec2dd..d1947428b42 100644
--- a/usr.bin/top/screen.c
+++ b/usr.bin/top/screen.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: screen.c,v 1.12 2003/06/16 01:09:02 deraadt Exp $ */
+/* $OpenBSD: screen.c,v 1.13 2003/06/16 17:24:44 millert Exp $ */
/*
* Top users/processes display for Unix
@@ -40,6 +40,7 @@
#include <sys/types.h>
#include <sys/ioctl.h>
+#include <err.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/usr.bin/top/top.c b/usr.bin/top/top.c
index 7e74cbc6f06..4945313afef 100644
--- a/usr.bin/top/top.c
+++ b/usr.bin/top/top.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: top.c,v 1.22 2003/06/16 01:09:02 deraadt Exp $ */
+/* $OpenBSD: top.c,v 1.23 2003/06/16 17:24:44 millert Exp $ */
/*
* Top users/processes display for Unix
@@ -31,6 +31,9 @@
const char copyright[] = "Copyright (c) 1984 through 1996, William LeFebvre";
#include <sys/types.h>
+#include <sys/time.h>
+#include <err.h>
+#include <errno.h>
#include <stdio.h>
#include <ctype.h>
#include <signal.h>
@@ -38,8 +41,6 @@ const char copyright[] = "Copyright (c) 1984 through 1996, William LeFebvre
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
-#include <errno.h>
-#include <sys/time.h>
/* includes specific to top */
#include "display.h" /* interface to display package */