summaryrefslogtreecommitdiffstats
path: root/usr.bin/tee
diff options
context:
space:
mode:
authordwmalone <dwmalone@FreeBSD.org>2001-12-03 21:37:35 +0000
committerdwmalone <dwmalone@FreeBSD.org>2001-12-03 21:37:35 +0000
commit383583bd4fd72315ced02ab5741047a6a7f3e7a7 (patch)
tree289e19ab28f237ce4e3c6dbb028a8bbff798eae4 /usr.bin/tee
parentd0e180a89a67ffe34aaf88ece44ae7537b7c2350 (diff)
downloadFreeBSD-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/Makefile2
-rw-r--r--usr.bin/tee/tee.c6
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;
OpenPOWER on IntegriCloud