summaryrefslogtreecommitdiffstats
path: root/usr.bin/printenv
diff options
context:
space:
mode:
authordwmalone <dwmalone@FreeBSD.org>2001-12-03 21:15:40 +0000
committerdwmalone <dwmalone@FreeBSD.org>2001-12-03 21:15:40 +0000
commit935f368eab04eda2cb7ad8b480ec38c3a28ce378 (patch)
tree5d7f8e2e669f169d89e1d0ee57d9fc69581bf6c8 /usr.bin/printenv
parenta7b69c0f254ce2389cf9aa2b43ba1586af409d69 (diff)
downloadFreeBSD-src-935f368eab04eda2cb7ad8b480ec38c3a28ce378.zip
FreeBSD-src-935f368eab04eda2cb7ad8b480ec38c3a28ce378.tar.gz
Warnc cleanups. Add FreeBSD IDs.
Diffstat (limited to 'usr.bin/printenv')
-rw-r--r--usr.bin/printenv/Makefile2
-rw-r--r--usr.bin/printenv/printenv.c8
2 files changed, 8 insertions, 2 deletions
diff --git a/usr.bin/printenv/Makefile b/usr.bin/printenv/Makefile
index 94975bd..b8fbd6a 100644
--- a/usr.bin/printenv/Makefile
+++ b/usr.bin/printenv/Makefile
@@ -1,6 +1,8 @@
+# $FreeBSD$
# @(#)Makefile 8.1 (Berkeley) 6/6/93
PROG= printenv
MLINKS= printenv.1 env.1
+WARNS?= 2
.include <bsd.prog.mk>
diff --git a/usr.bin/printenv/printenv.c b/usr.bin/printenv/printenv.c
index cf33837..72722a3 100644
--- a/usr.bin/printenv/printenv.c
+++ b/usr.bin/printenv/printenv.c
@@ -31,14 +31,18 @@
* SUCH DAMAGE.
*/
+#include <sys/cdefs.h>
+
+__FBSDID("$FreeBSD$");
+
#ifndef lint
-static char copyright[] =
+static const char copyright[] =
"@(#) Copyright (c) 1987, 1993\n\
The Regents of the University of California. All rights reserved.\n";
#endif /* not lint */
#ifndef lint
-static char sccsid[] = "@(#)printenv.c 8.2 (Berkeley) 5/4/95";
+static const char sccsid[] = "@(#)printenv.c 8.2 (Berkeley) 5/4/95";
#endif /* not lint */
#include <sys/types.h>
OpenPOWER on IntegriCloud