Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Mar 2002 05:44:46 -0800 (PST)
From:      David Malone <dwmalone@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/usr.bin/chpass edit.c field.c pw_yp.c
Message-ID:  <200203301344.g2UDikr58977@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
dwmalone    2002/03/30 05:44:46 PST

  Modified files:
    usr.bin/chpass       edit.c field.c pw_yp.c 
  Log:
  Minor post warns stuff.
  1) Fix up vendor IDs for files I'm touching and put FBSDID in the right place.
  2) Cast return value of snprintf to size_t rather than casting sizeof() to
     an int, 'cos we know snprintf returns a non-genative number.
  3) Avoid 'char *blank = "";' by just strduping. This could be bad sometimes,
     but all these variables usually point at malloced memory so this makes
     them always point at malloced memory.
  
  Revision  Changes    Path
  1.21      +5 -3      src/usr.bin/chpass/edit.c
  1.6       +6 -12     src/usr.bin/chpass/field.c
  1.21      +3 -4      src/usr.bin/chpass/pw_yp.c

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




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