diff options
author | delphij <delphij@FreeBSD.org> | 2009-12-11 23:30:22 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2009-12-11 23:30:22 +0000 |
commit | f8bfec1fb23c300d6b8bb021cf4f7fdd21981c3f (patch) | |
tree | aefcfd0dd28d25d858a8736b71b6e416b65f8925 /usr.bin/tset/misc.c | |
parent | 1f8935fbf1845f4e3c016933b972389054881c1c (diff) | |
download | FreeBSD-src-f8bfec1fb23c300d6b8bb021cf4f7fdd21981c3f.zip FreeBSD-src-f8bfec1fb23c300d6b8bb021cf4f7fdd21981c3f.tar.gz |
Remove unnecessary termcap.h includes inherited from extern.h and other
unneeded headers. While I'm there, make function definations ANSI
prototypes.
Diffstat (limited to 'usr.bin/tset/misc.c')
-rw-r--r-- | usr.bin/tset/misc.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/usr.bin/tset/misc.c b/usr.bin/tset/misc.c index 52358e7..16e0e1e 100644 --- a/usr.bin/tset/misc.c +++ b/usr.bin/tset/misc.c @@ -42,15 +42,12 @@ static const char sccsid[] = "@(#)misc.c 8.1 (Berkeley) 6/9/93"; #include <err.h> #include <fcntl.h> #include <stdio.h> -#include <stdlib.h> -#include <string.h> #include <unistd.h> #include "extern.h" void -cat(file) - char *file; +cat(char *file) { register int fd, nr, nw; char buf[1024]; @@ -67,8 +64,7 @@ cat(file) } int -outc(c) - int c; +outc(int c) { return putc(c, stderr); } |