From 3dc8ea94f199090604445dd8874736151c18a054 Mon Sep 17 00:00:00 2001
From: dd
Date: Sun, 15 Jul 2001 05:44:23 +0000
Subject: Constify and set WARNS=2.
Submitted by: Mike Barcroft
---
sbin/reboot/Makefile | 1 +
sbin/reboot/reboot.c | 3 ++-
2 files changed, 3 insertions(+), 1 deletion(-)
(limited to 'sbin')
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;
--
cgit v1.1