cvs commit: src/usr.sbin/nologin nologin.c

Xin LI delphij at FreeBSD.org
Mon Jan 3 19:57:21 PST 2005


delphij     2005-01-04 03:57:20 UTC

  FreeBSD src repository

  Modified files:
    usr.sbin/nologin     nologin.c 
  Log:
  nologin(8) does not seem to require any command line parameters,
  so remove argc and argv from main() argument.
  
  At the same time, user and tt is not likely to be changed during
  execution so mark them const.
  
  This commit should guarantee nologin to pass WARNS=6.
  
  Tested on:      i386
  MFC After:      1 month
  
  Revision  Changes    Path
  1.5       +2 -2      src/usr.sbin/nologin/nologin.c


More information about the cvs-all mailing list