From: Sascha Wildner Date: Sun, 6 Nov 2005 12:29:11 +0000 (+0000) Subject: Cleanup: X-Git-Tag: v2.0.1~5690 X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/1ab50dff25bf6838482db69b413bec5fec27f9eb Cleanup: - In function definitions, move the type on a line of its own. - Ansify function definitions. --- diff --git a/sbin/ip6fw/ip6fw.c b/sbin/ip6fw/ip6fw.c index ca5f25fc44..b3443027da 100644 --- a/sbin/ip6fw/ip6fw.c +++ b/sbin/ip6fw/ip6fw.c @@ -49,7 +49,7 @@ * * $Id: ip6fw.c,v 1.1.2.2.2.2 1999/05/14 05:13:50 shin Exp $ * $FreeBSD: src/sbin/ip6fw/ip6fw.c,v 1.1.2.9 2003/04/05 10:54:51 ume Exp $ - * $DragonFly: src/sbin/ip6fw/ip6fw.c,v 1.8 2004/12/18 21:43:38 swildner Exp $ + * $DragonFly: src/sbin/ip6fw/ip6fw.c,v 1.9 2005/11/06 12:29:11 swildner Exp $ */ #include @@ -138,7 +138,8 @@ mask_bits(u_char *m_ad, int m_len) static int pl2m[9] = { 0x00, 0x80, 0xc0, 0xe0, 0xf0, 0xf8, 0xfc, 0xfe, 0xff }; -struct in6_addr *plen2mask(int n) +struct in6_addr * +plen2mask(int n) { static struct in6_addr ia; u_char *p; diff --git a/sbin/ipfw/ipfw2.c b/sbin/ipfw/ipfw2.c index 83b3df5aec..8362b7b937 100644 --- a/sbin/ipfw/ipfw2.c +++ b/sbin/ipfw/ipfw2.c @@ -18,7 +18,7 @@ * NEW command line interface for IP firewall facility * * $FreeBSD: src/sbin/ipfw/ipfw2.c,v 1.4.2.13 2003/05/27 22:21:11 gshapiro Exp $ - * $DragonFly: src/sbin/ipfw/ipfw2.c,v 1.6 2004/12/18 21:43:38 swildner Exp $ + * $DragonFly: src/sbin/ipfw/ipfw2.c,v 1.7 2005/11/06 12:29:11 swildner Exp $ */ #include @@ -3358,7 +3358,7 @@ resetlog(int ac, char *av[]) } static void -flush() +flush(void) { int cmd = do_pipe ? IP_DUMMYNET_FLUSH : IP_FW_FLUSH;