summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2003-06-16 17:24:45 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2003-06-16 17:24:45 +0000
commit604d34a9b97c25f5fb16a77d41174755546054af (patch)
tree6d6aa58093b1f39b3026c4d1e70ffc5cfb48eba3 /usr.bin
parent0f215d27db98f9142619ee15a3ac98a82e122947 (diff)
Add missing #include <err.h>
Diffstat (limited to 'usr.bin')
-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 */