From owner-freebsd-bugs@FreeBSD.ORG Mon Oct 26 19:00:06 2009 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 394FF1065670 for ; Mon, 26 Oct 2009 19:00:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id DF3628FC13 for ; Mon, 26 Oct 2009 19:00:05 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n9QJ05v2057416 for ; Mon, 26 Oct 2009 19:00:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n9QJ05NW057415; Mon, 26 Oct 2009 19:00:05 GMT (envelope-from gnats) Resent-Date: Mon, 26 Oct 2009 19:00:05 GMT Resent-Message-Id: <200910261900.n9QJ05NW057415@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Ulrich Spörlein Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B83F11065679 for ; Mon, 26 Oct 2009 18:54:52 +0000 (UTC) (envelope-from uqs@spoerlein.net) Received: from acme.spoerlein.net (cl-43.dus-01.de.sixxs.net [IPv6:2a01:198:200:2a::2]) by mx1.freebsd.org (Postfix) with ESMTP id 37A228FC0A for ; Mon, 26 Oct 2009 18:54:52 +0000 (UTC) Received: from roadrunner.spoerlein.net (pD9E5C51D.dip.t-dialin.net [217.229.197.29]) by acme.spoerlein.net (8.14.3/8.14.3) with ESMTP id n9QIsnmh061711 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 26 Oct 2009 19:54:51 +0100 (CET) (envelope-from uqs@spoerlein.net) Received: from roadrunner.spoerlein.net (localhost [127.0.0.1]) by roadrunner.spoerlein.net (8.14.3/8.14.3) with ESMTP id n9QIseO6016428 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 26 Oct 2009 19:54:40 +0100 (CET) (envelope-from uqs@roadrunner.spoerlein.net) Received: (from uqs@localhost) by roadrunner.spoerlein.net (8.14.3/8.14.3/Submit) id n9QIsese016410; Mon, 26 Oct 2009 19:54:40 +0100 (CET) (envelope-from uqs) Message-Id: <200910261854.n9QIsese016410@roadrunner.spoerlein.net> Date: Mon, 26 Oct 2009 19:54:40 +0100 (CET) From: Ulrich Spörlein To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: bin/139995: mount_hpfs(8): WARNS6 cleanup X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Oct 2009 19:00:06 -0000 >Number: 139995 >Category: bin >Synopsis: mount_hpfs(8): WARNS6 cleanup >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Oct 26 19:00:05 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Ulrich Spörlein >Release: FreeBSD 9.0-CURRENT i386 >Organization: >Environment: >Description: ANSIfy, set WARNS=6, profit! >How-To-Repeat: >Fix: --- mount_hpfs.diff begins here --- diff -r bf8c6ec4b2b6 -r 118f7806d635 sbin/mount_hpfs/Makefile --- a/sbin/mount_hpfs/Makefile Mon Oct 26 19:31:00 2009 +0100 +++ b/sbin/mount_hpfs/Makefile Mon Oct 26 19:51:42 2009 +0100 @@ -7,8 +7,7 @@ MAN= mount_hpfs.8 MOUNT= ${.CURDIR}/../mount -CFLAGS+=-I${MOUNT} -DHPFS -WARNS?= 0 +CFLAGS+= -I${MOUNT} -DHPFS .PATH: ${MOUNT} diff -r bf8c6ec4b2b6 -r 118f7806d635 sbin/mount_hpfs/mount_hpfs.c --- a/sbin/mount_hpfs/mount_hpfs.c Mon Oct 26 19:31:00 2009 +0100 +++ b/sbin/mount_hpfs/mount_hpfs.c Mon Oct 26 19:51:42 2009 +0100 @@ -60,9 +60,7 @@ 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 @@ } gid_t -a_gid(s) - char *s; +a_gid(char *s) { struct group *gr; char *gname; @@ -170,8 +167,7 @@ } uid_t -a_uid(s) - char *s; +a_uid(char *s) { struct passwd *pw; char *uname; @@ -190,8 +186,7 @@ } mode_t -a_mask(s) - char *s; +a_mask(char *s) { int done, rv=0; char *ep; @@ -207,16 +202,14 @@ } 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; --- mount_hpfs.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: