summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordd <dd@FreeBSD.org>2001-07-15 05:44:23 +0000
committerdd <dd@FreeBSD.org>2001-07-15 05:44:23 +0000
commit3dc8ea94f199090604445dd8874736151c18a054 (patch)
tree27821889cae817af276a2cb02be2e1ecc36249f5
parent9d59f764e6d07a6a39a442aed9e46bd5483de81b (diff)
downloadFreeBSD-src-3dc8ea94f199090604445dd8874736151c18a054.zip
FreeBSD-src-3dc8ea94f199090604445dd8874736151c18a054.tar.gz
Constify and set WARNS=2.
Submitted by: Mike Barcroft <mike@q9media.com>
-rw-r--r--sbin/reboot/Makefile1
-rw-r--r--sbin/reboot/reboot.c3
2 files changed, 3 insertions, 1 deletions
diff --git a/sbin/reboot/Makefile b/sbin/reboot/Makefile
index 486d880..1629873 100644
--- a/sbin/reboot/Makefile
+++ b/sbin/reboot/Makefile
@@ -2,6 +2,7 @@
# $FreeBSD$
PROG= reboot
+WARNS?= 2
DPADD= ${LIBUTIL}
LDADD= -lutil
MAN= reboot.8 boot_i386.8
diff --git a/sbin/reboot/reboot.c b/sbin/reboot/reboot.c
index 7fa378f..61f971d 100644
--- a/sbin/reboot/reboot.c
+++ b/sbin/reboot/reboot.c
@@ -70,7 +70,8 @@ main(int argc, char *argv[])
struct passwd *pw;
int ch, howto, i, lflag, nflag, qflag, pflag, sverrno;
u_int pageins;
- char *p, *user;
+ char *p;
+ const char *user;
if (strstr((p = rindex(*argv, '/')) ? p + 1 : *argv, "halt")) {
dohalt = 1;
OpenPOWER on IntegriCloud