svn commit: r204404 - head/sbin/mount_ntfs

Ulrich Spoerlein uqs at FreeBSD.org
Sat Feb 27 10:16:15 UTC 2010


Author: uqs
Date: Sat Feb 27 10:16:14 2010
New Revision: 204404
URL: http://svn.freebsd.org/changeset/base/204404

Log:
  mount_ntfs(8): make WARNS=6 clean
  
  PR:		bin/140000
  Approved by:	ed (co-mentor)

Modified:
  head/sbin/mount_ntfs/Makefile
  head/sbin/mount_ntfs/mount_ntfs.c

Modified: head/sbin/mount_ntfs/Makefile
==============================================================================
--- head/sbin/mount_ntfs/Makefile	Sat Feb 27 10:14:59 2010	(r204403)
+++ head/sbin/mount_ntfs/Makefile	Sat Feb 27 10:16:14 2010	(r204404)
@@ -9,8 +9,7 @@ DPADD=	${LIBKICONV}
 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

Modified: head/sbin/mount_ntfs/mount_ntfs.c
==============================================================================
--- head/sbin/mount_ntfs/mount_ntfs.c	Sat Feb 27 10:14:59 2010	(r204403)
+++ head/sbin/mount_ntfs/mount_ntfs.c	Sat Feb 27 10:16:14 2010	(r204404)
@@ -69,9 +69,7 @@ static void	usage(void) __dead2;
 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 @@ main(argc, argv)
 }
 
 gid_t
-a_gid(s)
-	char *s;
+a_gid(char *s)
 {
 	struct group *gr;
 	char *gname;
@@ -213,8 +210,7 @@ a_gid(s)
 }
 
 uid_t
-a_uid(s)
-	char *s;
+a_uid(char *s)
 {
 	struct passwd *pw;
 	char *uname;
@@ -233,8 +229,7 @@ a_uid(s)
 }
 
 mode_t
-a_mask(s)
-	char *s;
+a_mask(char *s)
 {
 	int done, rv=0;
 	char *ep;
@@ -250,7 +245,7 @@ a_mask(s)
 }
 
 void
-usage()
+usage(void)
 {
 #ifdef TRANSITION_PERIOD_HACK
 	fprintf(stderr, "%s\n%s\n",


More information about the svn-src-all mailing list