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

[PATCH] sbin/mount_cd9660 WARNS=6 cleanup


From: Peter Schuller <peter.schuller@xxxxxxxxxxxx>
Date: Sat, 2 Apr 2005 01:01:30 +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_cd9660/Makefile.orig	2005-04-01 14:52:31.000000000 +0000
+++ sbin/mount_cd9660/Makefile	2005-04-01 14:52:48.000000000 +0000
@@ -2,6 +2,7 @@
 # $FreeBSD: src/sbin/mount_cd9660/Makefile,v 1.4.6.1 2001/04/25 10:58:34 ru Exp $
 # $DragonFly: src/sbin/mount_cd9660/Makefile,v 1.2 2003/06/17 04:27:33 dillon Exp $
 
+WARNS?= 6
 PROG=	mount_cd9660
 SRCS=	mount_cd9660.c getmntopts.c
 MAN=	mount_cd9660.8
--- sbin/mount_cd9660/mount_cd9660.c.orig	2005-04-01 14:52:31.000000000 +0000
+++ sbin/mount_cd9660/mount_cd9660.c	2005-04-01 14:54:09.000000000 +0000
@@ -67,11 +67,11 @@
 	{ "rrip", 1, ISOFSMNT_NORRIP, 1 },
 	{ "joliet", 1, ISOFSMNT_NOJOLIET, 1 },
 	{ "strictjoliet", 1, ISOFSMNT_BROKENJOLIET, 1 },
-	{ NULL }
+	MOPT_NULL
 };
 
-int	get_ssector(const char *dev);
-void	usage(void);
+static int	get_ssector(const char *dev);
+static void	usage(void);
 
 int
 main(int argc, char **argv)
@@ -176,7 +176,7 @@
 	exit(0);
 }
 
-void
+static void
 usage(void)
 {
 	fprintf(stderr,
@@ -184,7 +184,7 @@
 	exit(EX_USAGE);
 }
 
-int
+static int
 get_ssector(const char *dev)
 {
 	struct ioc_toc_header h;


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