diff options
| author | Dima Dorfman <dd@FreeBSD.org> | 2001-07-15 05:44:23 +0000 |
|---|---|---|
| committer | Dima Dorfman <dd@FreeBSD.org> | 2001-07-15 05:44:23 +0000 |
| commit | 8b032500b6fa353ec303e9de9d91295e315fb155 (patch) | |
| tree | 27821889cae817af276a2cb02be2e1ecc36249f5 | |
| parent | 086ad217b2fc764e9552c554351481cc5941ecbf (diff) | |
Notes
| -rw-r--r-- | sbin/reboot/Makefile | 1 | ||||
| -rw-r--r-- | sbin/reboot/reboot.c | 3 |
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; |
