From owner-svn-src-head@FreeBSD.ORG Sat Feb 27 10:14:59 2010 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9AF841065674; Sat, 27 Feb 2010 10:14:59 +0000 (UTC) (envelope-from uqs@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 8A20E8FC1B; Sat, 27 Feb 2010 10:14:59 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o1RAExfr029450; Sat, 27 Feb 2010 10:14:59 GMT (envelope-from uqs@svn.freebsd.org) Received: (from uqs@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o1RAExV3029447; Sat, 27 Feb 2010 10:14:59 GMT (envelope-from uqs@svn.freebsd.org) Message-Id: <201002271014.o1RAExV3029447@svn.freebsd.org> From: Ulrich Spoerlein Date: Sat, 27 Feb 2010 10:14:59 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r204403 - head/sbin/mount_hpfs X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Feb 2010 10:14:59 -0000 Author: uqs Date: Sat Feb 27 10:14:59 2010 New Revision: 204403 URL: http://svn.freebsd.org/changeset/base/204403 Log: mount_hpfs(8): make WARNS=6 clean PR: bin/139995 Approved by: ed (co-mentor) Modified: head/sbin/mount_hpfs/Makefile head/sbin/mount_hpfs/mount_hpfs.c Modified: head/sbin/mount_hpfs/Makefile ============================================================================== --- head/sbin/mount_hpfs/Makefile Sat Feb 27 07:12:25 2010 (r204402) +++ head/sbin/mount_hpfs/Makefile Sat Feb 27 10:14:59 2010 (r204403) @@ -7,8 +7,7 @@ SRCS= mount_hpfs.c getmntopts.c MAN= mount_hpfs.8 MOUNT= ${.CURDIR}/../mount -CFLAGS+=-I${MOUNT} -DHPFS -WARNS?= 0 +CFLAGS+= -I${MOUNT} -DHPFS .PATH: ${MOUNT} Modified: head/sbin/mount_hpfs/mount_hpfs.c ============================================================================== --- head/sbin/mount_hpfs/mount_hpfs.c Sat Feb 27 07:12:25 2010 (r204402) +++ head/sbin/mount_hpfs/mount_hpfs.c Sat Feb 27 10:14:59 2010 (r204403) @@ -60,9 +60,7 @@ static void usage(void) __dead2; static void load_u2wtable(struct hpfs_args *, char *); int -main(argc, argv) - int argc; - char **argv; +main(int argc, char *argv[]) { struct hpfs_args args; struct stat sb; @@ -150,8 +148,7 @@ main(argc, argv) } gid_t -a_gid(s) - char *s; +a_gid(char *s) { struct group *gr; char *gname; @@ -170,8 +167,7 @@ a_gid(s) } uid_t -a_uid(s) - char *s; +a_uid(char *s) { struct passwd *pw; char *uname; @@ -190,8 +186,7 @@ a_uid(s) } mode_t -a_mask(s) - char *s; +a_mask(char *s) { int done, rv=0; char *ep; @@ -207,16 +202,14 @@ a_mask(s) } void -usage() +usage(void) { fprintf(stderr, "usage: mount_hpfs [-u user] [-g group] [-m mask] bdev dir\n"); exit(EX_USAGE); } void -load_u2wtable (pargs, name) - struct hpfs_args *pargs; - char *name; +load_u2wtable (struct hpfs_args *pargs, char *name) { FILE *f; int i, code;