Date: Mon, 26 Oct 2009 19:54:40 +0100 (CET) From: Ulrich Spörlein <uqs@spoerlein.net> To: FreeBSD-gnats-submit@FreeBSD.org Subject: bin/139995: mount_hpfs(8): WARNS6 cleanup Message-ID: <200910261854.n9QIsese016410@roadrunner.spoerlein.net> Resent-Message-ID: <200910261900.n9QJ05NW057415@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200910261854.n9QIsese016410>