summaryrefslogtreecommitdiff
path: root/usr.bin/uname
diff options
context:
space:
mode:
authorMark Murray <markm@FreeBSD.org>2001-12-11 23:16:25 +0000
committerMark Murray <markm@FreeBSD.org>2001-12-11 23:16:25 +0000
commit043c9b9b340bcaf8f77fa2208f43dfdaf50bf82f (patch)
treef6773eaec60df75fafb7621658d02af583c8b4a5 /usr.bin/uname
parent49601c43279a937bf51fb5c17cf24bda1dbc512a (diff)
downloadsrc-test2-043c9b9b340bcaf8f77fa2208f43dfdaf50bf82f.tar.gz
src-test2-043c9b9b340bcaf8f77fa2208f43dfdaf50bf82f.zip
Notes
Diffstat (limited to 'usr.bin/uname')
-rw-r--r--usr.bin/uname/uname.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/usr.bin/uname/uname.c b/usr.bin/uname/uname.c
index 68fd38b0f60d..acb0e3af3cc9 100644
--- a/usr.bin/uname/uname.c
+++ b/usr.bin/uname/uname.c
@@ -31,15 +31,19 @@
* SUCH DAMAGE.
*/
+#include <sys/cdefs.h>
+
+__FBSDID("$FreeBSD$");
+
#ifndef lint
-static char copyright[] =
+static const char copyright[] =
"@(#) Copyright (c) 1993\n\
The Regents of the University of California. All rights reserved.\n";
-#endif /* not lint */
+#endif
#ifndef lint
-static char sccsid[] = "@(#)uname.c 8.2 (Berkeley) 5/4/95";
-#endif /* not lint */
+static const char sccsid[] = "@(#)uname.c 8.2 (Berkeley) 5/4/95";
+#endif
#include <sys/param.h>
#include <sys/sysctl.h>
@@ -64,7 +68,8 @@ main(argc, argv)
u_int flags;
int ch, mib[2];
size_t len, tlen;
- char *p, *prefix, buf[1024];
+ char *p, buf[1024];
+ const char *prefix;
flags = 0;
while ((ch = getopt(argc, argv, "amnprsv")) != -1)