cvs commit: src/usr.bin/chpass chpass.c chpass.h field.c util.c

Philippe Charnier charnier at FreeBSD.org
Sun Jan 18 13:46:49 PST 2004


charnier    2004/01/18 13:46:39 PST

  FreeBSD src repository

  Modified files:
    usr.bin/chpass       chpass.c chpass.h field.c util.c 
  Log:
  Remove unused includes. Make it WARNS=6 friendly. Concerning bin/2442, make
  a new function dup_shell() to replace ok_shell() and make it unconditionnally
  strdup() its result to make the caller's code simplier. Change ok_shell() to
  just return an integer value suitable for tests (it was used mainly for that
  purpose). Do not use strdup() in the caller's code but rely on dup_shell()
  that will do the job for us.
  
  PR: bin/2442
  
  Revision  Changes    Path
  1.27      +1 -7      src/usr.bin/chpass/chpass.c
  1.7       +2 -2      src/usr.bin/chpass/chpass.h
  1.9       +4 -6      src/usr.bin/chpass/field.c
  1.13      +32 -6     src/usr.bin/chpass/util.c


More information about the cvs-all mailing list