diff options
author | dwmalone <dwmalone@FreeBSD.org> | 2001-12-03 21:37:35 +0000 |
---|---|---|
committer | dwmalone <dwmalone@FreeBSD.org> | 2001-12-03 21:37:35 +0000 |
commit | 383583bd4fd72315ced02ab5741047a6a7f3e7a7 (patch) | |
tree | 289e19ab28f237ce4e3c6dbb028a8bbff798eae4 /usr.bin/tee | |
parent | d0e180a89a67ffe34aaf88ece44ae7537b7c2350 (diff) | |
download | FreeBSD-src-383583bd4fd72315ced02ab5741047a6a7f3e7a7.zip FreeBSD-src-383583bd4fd72315ced02ab5741047a6a7f3e7a7.tar.gz |
Warns cleanups. Add FreeBSD ID to Makefile.
Diffstat (limited to 'usr.bin/tee')
-rw-r--r-- | usr.bin/tee/Makefile | 2 | ||||
-rw-r--r-- | usr.bin/tee/tee.c | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/tee/Makefile b/usr.bin/tee/Makefile index a713132..49cb861 100644 --- a/usr.bin/tee/Makefile +++ b/usr.bin/tee/Makefile @@ -1,5 +1,7 @@ +# $FreeBSD$ # @(#)Makefile 8.1 (Berkeley) 6/6/93 PROG= tee +WARNS?= 2 .include <bsd.prog.mk> diff --git a/usr.bin/tee/tee.c b/usr.bin/tee/tee.c index c393200..da541ff 100644 --- a/usr.bin/tee/tee.c +++ b/usr.bin/tee/tee.c @@ -58,11 +58,11 @@ static const char rcsid[] = typedef struct _list { struct _list *next; int fd; - char *name; + const char *name; } LIST; LIST *head; -void add __P((int, char *)); +void add __P((int, const char *)); static void usage __P((void)); int @@ -134,7 +134,7 @@ usage() void add(fd, name) int fd; - char *name; + const char *name; { LIST *p; |