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

[PATCH] sbin/mount_union WARNS=6 cleanup


From: Peter Schuller <peter.schuller@xxxxxxxxxxxx>
Date: Sat, 2 Apr 2005 01:05:02 +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_union/Makefile.orig	2005-04-01 14:56:03.000000000 +0000
+++ sbin/mount_union/Makefile	2005-04-01 14:56:22.000000000 +0000
@@ -2,6 +2,7 @@
 # $FreeBSD: src/sbin/mount_union/Makefile,v 1.6.6.1 2001/04/25 10:58:40 ru Exp $
 # $DragonFly: src/sbin/mount_union/Makefile,v 1.2 2003/06/17 04:27:33 dillon Exp $
 
+WARNS?= 6
 PROG=	mount_union
 SRCS=	mount_union.c getmntopts.c
 MAN=	mount_union.8
--- sbin/mount_union/mount_union.c.orig	2005-04-01 14:56:03.000000000 +0000
+++ sbin/mount_union/mount_union.c	2005-04-01 14:57:05.000000000 +0000
@@ -55,7 +55,7 @@
 
 static struct mntopt mopts[] = {
 	MOPT_STDOPTS,
-	{ NULL }
+	MOPT_NULL
 };
 
 static int	subdir(const char *, const char *);
@@ -122,7 +122,7 @@
 	exit(0);
 }
 
-int
+static int
 subdir(const char *p, const char *dir)
 {
 	int l;
@@ -137,7 +137,7 @@
 	return (0);
 }
 
-void
+static void
 usage(void)
 {
 	fprintf(stderr,


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