Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Oct 2009 20:00:10 +0100 (CET)
From:      Ulrich Spörlein <uqs@spoerlein.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   bin/140000: mount_ntfs(8) WARNS6 cleanup
Message-ID:  <200910261900.n9QJ09Iu024263@roadrunner.spoerlein.net>
Resent-Message-ID: <200910262010.n9QKA2Ok021794@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         140000
>Category:       bin
>Synopsis:       mount_ntfs(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 20:10:02 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Ulrich Spörlein
>Release:        FreeBSD 9.0-CURRENT i386
>Organization:
>Environment:
	
>Description:
Bump to WARNS=6 after ANSI cleanup
>How-To-Repeat:
	
>Fix:

	

--- mount_ntfs.diff begins here ---
diff -r 118f7806d635 -r 5558195fb93d sbin/mount_ntfs/Makefile
--- a/sbin/mount_ntfs/Makefile	Mon Oct 26 19:51:42 2009 +0100
+++ b/sbin/mount_ntfs/Makefile	Mon Oct 26 19:57:23 2009 +0100
@@ -9,8 +9,7 @@
 LDADD=	-lkiconv
 
 MOUNT=	${.CURDIR}/../mount
-CFLAGS+=-I${MOUNT}
-WARNS?=	0
+CFLAGS+= -I${MOUNT}
 
 # Needs to be dynamically linked for optional dlopen() access to
 # userland libiconv
diff -r 118f7806d635 -r 5558195fb93d sbin/mount_ntfs/mount_ntfs.c
--- a/sbin/mount_ntfs/mount_ntfs.c	Mon Oct 26 19:51:42 2009 +0100
+++ b/sbin/mount_ntfs/mount_ntfs.c	Mon Oct 26 19:57:23 2009 +0100
@@ -69,9 +69,7 @@
 static int	set_charset(struct ntfs_args *);
 
 int
-main(argc, argv)
-	int argc;
-	char **argv;
+main(int argc, char *argv[])
 {
 	struct ntfs_args args;
 	struct stat sb;
@@ -193,8 +191,7 @@
 }
 
 gid_t
-a_gid(s)
-	char *s;
+a_gid(char *s)
 {
 	struct group *gr;
 	char *gname;
@@ -213,8 +210,7 @@
 }
 
 uid_t
-a_uid(s)
-	char *s;
+a_uid(char *s)
 {
 	struct passwd *pw;
 	char *uname;
@@ -233,8 +229,7 @@
 }
 
 mode_t
-a_mask(s)
-	char *s;
+a_mask(char *s)
 {
 	int done, rv=0;
 	char *ep;
@@ -250,7 +245,7 @@
 }
 
 void
-usage()
+usage(void)
 {
 #ifdef TRANSITION_PERIOD_HACK
 	fprintf(stderr, "%s\n%s\n",
--- mount_ntfs.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?200910261900.n9QJ09Iu024263>