Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Feb 2010 10:16:15 +0000 (UTC)
From:      Ulrich Spoerlein <uqs@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r204404 - head/sbin/mount_ntfs
Message-ID:  <201002271016.o1RAGFmc029786@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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",



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201002271016.o1RAGFmc029786>