cvs commit: src/sbin/reboot Makefile reboot.c
Xin LI
delphij at FreeBSD.org
Sun Jul 3 01:10:36 GMT 2005
delphij 2005-01-25 08:14:00 UTC
FreeBSD src repository
Modified files:
sbin/reboot Makefile reboot.c
Log:
The kernel specified in main() of reboot(8) will be initialized
with -k option and never be used without kflag. This confuses
gcc because we set "kflag" at the same time with "kernel", but
the logic is not that apparant for gcc.
Since we can initialize "kernel" to NULL then know if "k" option
is set through determining whether it is still NULL, don't try
to have gcc to guess why we are connecting "kflag" with "kernel"
and use "kernel" directly in place of kflag.
Bump WARNS?= from 2 to 6
Revision Changes Path
1.14 +1 -0 src/sbin/reboot/Makefile
1.21 +4 -5 src/sbin/reboot/reboot.c
More information about the cvs-src
mailing list