Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Jan 2005 08:14:00 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sbin/reboot Makefile reboot.c
Message-ID:  <200501250814.j0P8E1sZ023056@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200501250814.j0P8E1sZ023056>