From 73461538c2a564f3992725609929618b698e9701 Mon Sep 17 00:00:00 2001 From: Philippe Charnier Date: Sun, 18 Jan 2004 21:46:39 +0000 Subject: 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 --- chpass/chpass.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'chpass/chpass.c') diff --git a/chpass/chpass.c b/chpass/chpass.c index 8b716ba..ad6b985 100644 --- a/chpass/chpass.c +++ b/chpass/chpass.c @@ -53,15 +53,9 @@ static char sccsid[] = "@(#)chpass.c 8.4 (Berkeley) 4/2/94"; __FBSDID("$FreeBSD$"); #include -#include -#include -#include -#include -#include #include #include -#include #include #include #include @@ -292,7 +286,7 @@ usage(void) { (void)fprintf(stderr, - "Usage: chpass%s %s [user]\n", + "usage: chpass%s %s [user]\n", #ifdef YP " [-d domain] [-h host]", #else -- cgit v1.2.3-56-ge451