diff options
author | dwmalone <dwmalone@FreeBSD.org> | 2001-12-03 21:03:39 +0000 |
---|---|---|
committer | dwmalone <dwmalone@FreeBSD.org> | 2001-12-03 21:03:39 +0000 |
commit | db0b731dacc59740857f17645ba5b1dca74cf1e6 (patch) | |
tree | 03bc1e1340d45ea2cd091b922812e39705a7ce51 /usr.bin/logname | |
parent | 743061688bbb831a2143568bf26abd82e347f2ab (diff) | |
download | FreeBSD-src-db0b731dacc59740857f17645ba5b1dca74cf1e6.zip FreeBSD-src-db0b731dacc59740857f17645ba5b1dca74cf1e6.tar.gz |
Warns cleanups. Add FreeBSD ID to Makefile.
Diffstat (limited to 'usr.bin/logname')
-rw-r--r-- | usr.bin/logname/Makefile | 2 | ||||
-rw-r--r-- | usr.bin/logname/logname.c | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/logname/Makefile b/usr.bin/logname/Makefile index b8471ce..717bf8c 100644 --- a/usr.bin/logname/Makefile +++ b/usr.bin/logname/Makefile @@ -1,5 +1,7 @@ +# $FreeBSD$ # @(#)Makefile 8.1 (Berkeley) 6/9/93 PROG= logname +WARNS?= 2 .include <bsd.prog.mk> diff --git a/usr.bin/logname/logname.c b/usr.bin/logname/logname.c index 30bd41c..cea6e5f 100644 --- a/usr.bin/logname/logname.c +++ b/usr.bin/logname/logname.c @@ -34,13 +34,13 @@ */ #ifndef lint -static char copyright[] = +static const char copyright[] = "@(#) Copyright (c) 1991, 1993, 1994\n\ The Regents of the University of California. All rights reserved.\n"; #endif /* not lint */ #ifndef lint -static char sccsid[] = "@(#)logname.c 8.2 (Berkeley) 4/3/94"; +static const char sccsid[] = "@(#)logname.c 8.2 (Berkeley) 4/3/94"; #endif /* not lint */ #include <err.h> @@ -55,7 +55,7 @@ void usage __P((void)); int main(argc, argv) int argc; - char *argv[]; + char *argv[] __unused; { char *p; |