From a25f94b5ae47af3cd364faa45ba35b34610eb8e9 Mon Sep 17 00:00:00 2001 From: rwatson Date: Thu, 10 May 2007 15:58:48 +0000 Subject: Move universally to ANSI C function declarations, with relatively consistent style(9)-ish layout. --- sys/netinet/ip_icmp.c | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) (limited to 'sys/netinet/ip_icmp.c') diff --git a/sys/netinet/ip_icmp.c b/sys/netinet/ip_icmp.c index 3385143..2ccd6bd 100644 --- a/sys/netinet/ip_icmp.c +++ b/sys/netinet/ip_icmp.c @@ -145,11 +145,7 @@ extern struct protosw inetsw[]; * in response to bad packet ip. */ void -icmp_error(n, type, code, dest, mtu) - struct mbuf *n; - int type, code; - n_long dest; - int mtu; +icmp_error(struct mbuf *n, int type, int code, n_long dest, int mtu) { register struct ip *oip = mtod(n, struct ip *), *nip; register unsigned oiphlen = oip->ip_hl << 2; @@ -293,9 +289,7 @@ freeit: * Process a received ICMP message. */ void -icmp_input(m, off) - struct mbuf *m; - int off; +icmp_input(struct mbuf *m, int off) { struct icmp *icp; struct in_ifaddr *ia; @@ -622,8 +616,7 @@ freeit: * Reflect the ip packet back to the source */ static void -icmp_reflect(m) - struct mbuf *m; +icmp_reflect(struct mbuf *m) { struct ip *ip = mtod(m, struct ip *); struct ifaddr *ifa; @@ -802,9 +795,7 @@ done: * after supplying a checksum. */ static void -icmp_send(m, opts) - register struct mbuf *m; - struct mbuf *opts; +icmp_send(struct mbuf *m, struct mbuf *opts) { register struct ip *ip = mtod(m, struct ip *); register int hlen; @@ -831,7 +822,7 @@ icmp_send(m, opts) } n_time -iptime() +iptime(void) { struct timeval atv; u_long t; @@ -847,9 +838,7 @@ iptime() * is returned; otherwise, a smaller value is returned. */ int -ip_next_mtu(mtu, dir) - int mtu; - int dir; +ip_next_mtu(int mtu, int dir) { static int mtutab[] = { 65535, 32000, 17914, 8166, 4352, 2002, 1492, 1280, 1006, 508, -- cgit v1.1