mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
Constify and set WARNS=2.
Submitted by: Mike Barcroft <mike@q9media.com>
This commit is contained in:
parent
086ad217b2
commit
8b032500b6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=79748
|
@ -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 a new issue