[PATCH] sbin/mount_null WARNS=6 cleanup

看板DFBSD_submit作者時間21年前 (2005/04/02 03:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/2 (看更多)
--TB36FDmn/VVEgNH/ 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 --TB36FDmn/VVEgNH/ Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="mount_null.patch" --- 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; --TB36FDmn/VVEgNH/--
文章代碼(AID): #12JQ6w00 (DFBSD_submit)
文章代碼(AID): #12JQ6w00 (DFBSD_submit)