summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2007-03-30 19:21:20 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2007-03-30 19:21:20 +0000
commita5ea3fbd83d4879efe526a19547bccaccf374c47 (patch)
tree2073773684ef065da0ba7f9ca7be4b0ae5db9606 /usr.bin
parenta43ee3c02d87b24b5d42a21bea8c53251ff63ba1 (diff)
Remove some uneeded includes and declarations. -Wall is happy and no
binary change. From Mark Lumsden.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/top/display.c5
-rw-r--r--usr.bin/top/layout.h4
-rw-r--r--usr.bin/top/screen.c3
-rw-r--r--usr.bin/top/top.h7
4 files changed, 5 insertions, 14 deletions
diff --git a/usr.bin/top/display.c b/usr.bin/top/display.c
index 4877757e816..19d0dcfc980 100644
--- a/usr.bin/top/display.c
+++ b/usr.bin/top/display.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: display.c,v 1.23 2006/03/04 06:58:11 otto Exp $ */
+/* $OpenBSD: display.c,v 1.24 2007/03/30 19:21:19 otto Exp $ */
/*
* Top users/processes display for Unix
@@ -46,7 +46,6 @@
*/
#include <sys/types.h>
-#include <sys/time.h>
#include <sys/sched.h>
#include <stdio.h>
#include <ctype.h>
@@ -55,7 +54,6 @@
#include <string.h>
#include <signal.h>
#include <term.h>
-#include <time.h>
#include <unistd.h>
#include <stdarg.h>
@@ -63,7 +61,6 @@
#include "layout.h" /* defines for screen position layout */
#include "display.h"
#include "top.h"
-#include "top.local.h"
#include "boolean.h"
#include "machine.h" /* we should eliminate this!!! */
#include "utils.h"
diff --git a/usr.bin/top/layout.h b/usr.bin/top/layout.h
index 61f43b072ff..d3d99953adc 100644
--- a/usr.bin/top/layout.h
+++ b/usr.bin/top/layout.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: layout.h,v 1.4 2007/02/22 06:36:59 otto Exp $ */
+/* $OpenBSD: layout.h,v 1.5 2007/03/30 19:21:19 otto Exp $ */
/*
* Top users/processes display for Unix
@@ -31,7 +31,7 @@
/*
* Top - a top users display for Berkeley Unix
*
- * This file defines the locations on tne screen for various parts of the
+ * This file defines the locations on the screen for various parts of the
* display. These definitions are used by the routines in "display.c" for
* cursor addressing.
*/
diff --git a/usr.bin/top/screen.c b/usr.bin/top/screen.c
index eaed1dd22ac..b8a46f8a70b 100644
--- a/usr.bin/top/screen.c
+++ b/usr.bin/top/screen.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: screen.c,v 1.14 2004/05/09 22:14:15 deraadt Exp $ */
+/* $OpenBSD: screen.c,v 1.15 2007/03/30 19:21:19 otto Exp $ */
/*
* Top users/processes display for Unix
@@ -45,7 +45,6 @@
#include <stdlib.h>
#include <string.h>
#include <term.h>
-#include <termios.h>
#include <unistd.h>
#include "top.h"
diff --git a/usr.bin/top/top.h b/usr.bin/top/top.h
index 77c318efb7b..6c601039f99 100644
--- a/usr.bin/top/top.h
+++ b/usr.bin/top/top.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: top.h,v 1.8 2007/02/22 06:36:59 otto Exp $ */
+/* $OpenBSD: top.h,v 1.9 2007/03/30 19:21:19 otto Exp $ */
/*
* Top users/processes display for Unix
@@ -82,8 +82,3 @@ extern uid_t userid(char *);
/* version.c */
extern char *version_string(void);
-extern int y_mem;
-extern int y_message;
-extern int y_header;
-extern int y_idlecursor;
-extern int y_procs;