[PATCH] sbin/mount_msdos WARNS=6 cleanup

Peter Schuller peter.schuller at infidyne.com
Fri Apr 1 15:03:09 PST 2005


Attached.

-- 
/ Peter Schuller, InfiDyne Technologies HB

PGP userID: 0xE9758B7D or 'Peter Schuller <peter.schuller at xxxxxxxxxxxx>'
Key retrieval: Send an E-Mail to getpgpkey at xxxxxxxxx
E-Mail: peter.schuller at xxxxxxxxxxxx Web: http://www.scode.org

--- sbin/mount_msdos/Makefile.orig	2005-04-01 14:59:35.000000000 +0000
+++ sbin/mount_msdos/Makefile	2005-04-01 14:59:50.000000000 +0000
@@ -3,6 +3,7 @@
 # $DragonFly: src/sbin/mount_msdos/Makefile,v 1.2 2003/06/17 04:27:33 dillon Exp $
 #
 
+WARNS?= 6
 PROG=	mount_msdos
 SRCS=	mount_msdos.c getmntopts.c
 MAN=	mount_msdos.8
--- sbin/mount_msdos/mount_msdos.c.orig	2005-04-01 14:59:35.000000000 +0000
+++ sbin/mount_msdos/mount_msdos.c	2005-04-01 15:00:32.000000000 +0000
@@ -69,7 +69,7 @@
 	{ "shortnames", 0, MSDOSFSMNT_SHORTNAME, 1 },
 	{ "longnames", 0, MSDOSFSMNT_LONGNAME, 1 },
 	{ "nowin95", 0, MSDOSFSMNT_NOWIN95, 1 },
-	{ NULL }
+	MOPT_NULL
 };
 
 static gid_t	a_gid(char *);
@@ -185,7 +185,7 @@
 	exit (0);
 }
 
-gid_t
+static gid_t
 a_gid(char *s)
 {
 	struct group *gr;
@@ -204,7 +204,7 @@
 	return (gid);
 }
 
-uid_t
+static uid_t
 a_uid(char *s)
 {
 	struct passwd *pw;
@@ -223,7 +223,7 @@
 	return (uid);
 }
 
-mode_t
+static mode_t
 a_mask(char *s)
 {
 	int done, rv;
@@ -240,7 +240,7 @@
 	return (rv);
 }
 
-void
+static void
 usage(void)
 {
 	fprintf(stderr, "%s\n%s\n", 
@@ -249,7 +249,7 @@
 	exit(EX_USAGE);
 }
 
-void
+static void
 load_u2wtable (struct msdosfs_args *pargs, char *name)
 {
 	FILE *f;
@@ -314,7 +314,7 @@
 	fclose(f);
 }
 
-void
+static void
 load_ultable (struct msdosfs_args *pargs, char *name)
 {
 	int i;




More information about the Submit mailing list