[PATCH] sbin/mount_null WARNS=6 cleanup

Peter Schuller peter.schuller at infidyne.com
Fri Apr 1 11:08:19 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

--- Makefile.orig	2005-04-01 11:01:18.000000000 +0000
+++ Makefile	2005-04-01 11:01:33.000000000 +0000
@@ -2,6 +2,7 @@
 # $FreeBSD: src/sbin/mount_null/Makefile,v 1.5.6.1 2001/04/25 10:58:38 ru Exp $
 # $DragonFly: src/sbin/mount_null/Makefile,v 1.2 2003/06/17 04:27:33 dillon Exp $
 
+WARNS?= 6
 PROG=	mount_null
 SRCS=	mount_null.c getmntopts.c
 MAN=	mount_null.8
--- mount_null.c.orig	2005-04-01 11:01:19.000000000 +0000
+++ mount_null.c	2005-04-01 11:05:39.000000000 +0000
@@ -54,10 +54,10 @@
 
 struct mntopt mopts[] = {
 	MOPT_STDOPTS,
-	{ NULL }
+	MOPT_NULL
 };
 
-int	subdir(const char *, const char *);
+static int	subdir(const char *, const char *);
 static void	usage(void) __dead2;
 
 int
@@ -111,7 +111,7 @@
 	exit(0);
 }
 
-int
+static int
 subdir(const char *p, const char *dir)
 {
 	int l;




More information about the Submit mailing list