DragonFly submit List (threaded) for 2005-04
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
[PATCH] sbin/mount_null WARNS=6 cleanup
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
--- 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;
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]