DragonFly BSD
DragonFly submit List (threaded) for 2005-04
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

[PATCH] sbin/mount_msdos WARNS=6 cleanup


From: Peter Schuller <peter.schuller@xxxxxxxxxxxx>
Date: Sat, 2 Apr 2005 01:08:26 +0200

Attached.

-- 
/ Peter Schuller, InfiDyne Technologies HB

PGP userID: 0xE9758B7D or 'Peter Schuller <peter.schuller@xxxxxxxxxxxx>'
Key retrieval: Send an E-Mail to getpgpkey@xxxxxxxxx
E-Mail: peter.schuller@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;


[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]