summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 486d880a9af1..1629873efd73 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 7fa378f7b006..61f971d40e3b 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;