From owner-cvs-all@FreeBSD.ORG Sun Jan 18 13:46:49 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8DDB916A506; Sun, 18 Jan 2004 13:46:49 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id DA39043D60; Sun, 18 Jan 2004 13:46:39 -0800 (PST) (envelope-from charnier@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id i0ILkd0B083418; Sun, 18 Jan 2004 13:46:39 -0800 (PST) (envelope-from charnier@repoman.freebsd.org) Received: (from charnier@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i0ILkdqa083417; Sun, 18 Jan 2004 13:46:39 -0800 (PST) (envelope-from charnier) Message-Id: <200401182146.i0ILkdqa083417@repoman.freebsd.org> From: Philippe Charnier Date: Sun, 18 Jan 2004 13:46:39 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/usr.bin/chpass chpass.c chpass.h field.c util.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jan 2004 21:46:49 -0000 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