summaryrefslogtreecommitdiff
path: root/usr.bin/top/screen.c
diff options
context:
space:
mode:
authorEitan Adler <eadler@FreeBSD.org>2018-05-21 00:53:42 +0000
committerEitan Adler <eadler@FreeBSD.org>2018-05-21 00:53:42 +0000
commit666cf873939d262b658c319b9f4f0a5f5247b398 (patch)
treee22467a990a6795ca49ec1d43d8b0f7ed54bb283 /usr.bin/top/screen.c
parent4901ca088d71c49a622891263691f4e6710abacc (diff)
downloadsrc-test2-666cf873939d262b658c319b9f4f0a5f5247b398.tar.gz
src-test2-666cf873939d262b658c319b9f4f0a5f5247b398.zip
Notes
Diffstat (limited to 'usr.bin/top/screen.c')
-rw-r--r--usr.bin/top/screen.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/usr.bin/top/screen.c b/usr.bin/top/screen.c
index 955867c23585..c1ef7da890a4 100644
--- a/usr.bin/top/screen.c
+++ b/usr.bin/top/screen.c
@@ -23,9 +23,10 @@
#include "top.h"
#include <sys/ioctl.h>
+#include <stdlib.h>
#include <string.h>
-# define TERMIOS
-# include <termios.h>
+#define TERMIOS
+#include <termios.h>
#include <curses.h>
#include <termcap.h>
#include "screen.h"
@@ -41,8 +42,6 @@ char ch_erase;
char ch_kill;
char smart_terminal;
char PC;
-char *tgetstr();
-char *tgoto();
char termcap_buf[1024];
char string_buffer[1024];
char home[15];
@@ -73,7 +72,6 @@ int interactive;
char *bufptr;
char *PCptr;
char *term_name;
- char *getenv();
int status;
/* set defaults in case we aren't smart */