Constify and set WARNS=2.
Submitted by: Mike Barcroft <mike@q9media.com>
This commit is contained in:
parent
086ad217b2
commit
8b032500b6
@ -2,6 +2,7 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PROG= reboot
|
||||
WARNS?= 2
|
||||
DPADD= ${LIBUTIL}
|
||||
LDADD= -lutil
|
||||
MAN= reboot.8 boot_i386.8
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user