[PATCH] sbin/mount_cd9660 WARNS=6 cleanup

看板DFBSD_submit作者時間21年前 (2005/04/02 07:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/2 (看更多)
--ghzN8eJ9Qlbqn3iT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Attached. -- / Peter Schuller, InfiDyne Technologies HB PGP userID: 0xE9758B7D or 'Peter Schuller <peter.schuller@infidyne.com>' Key retrieval: Send an E-Mail to getpgpkey@scode.org E-Mail: peter.schuller@infidyne.com Web: http://www.scode.org --ghzN8eJ9Qlbqn3iT Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="mount_cd9660.patch" --- 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; --ghzN8eJ9Qlbqn3iT--
文章代碼(AID): #12JTAp00 (DFBSD_submit)
文章代碼(AID): #12JTAp00 (DFBSD_submit)