Date: Sun, 18 Jan 2004 13:46:39 -0800 (PST) From: Philippe Charnier <charnier@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.bin/chpass chpass.c chpass.h field.c util.c Message-ID: <200401182146.i0ILkdqa083417@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200401182146.i0ILkdqa083417>