Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Jan 2005 03:57:20 +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/usr.sbin/nologin nologin.c
Message-ID:  <200501040357.j043vKR2074884@repoman.freebsd.org>

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



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