diff options
author | rwatson <rwatson@FreeBSD.org> | 2007-05-10 15:58:48 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2007-05-10 15:58:48 +0000 |
commit | a25f94b5ae47af3cd364faa45ba35b34610eb8e9 (patch) | |
tree | 2075644406447dff1b0f6bb1567b5058f2fa628c /sys/netinet/ip_options.c | |
parent | a55a86971407200964b1955b343fe4aee3ae676f (diff) | |
download | FreeBSD-src-a25f94b5ae47af3cd364faa45ba35b34610eb8e9.zip FreeBSD-src-a25f94b5ae47af3cd364faa45ba35b34610eb8e9.tar.gz |
Move universally to ANSI C function declarations, with relatively
consistent style(9)-ish layout.
Diffstat (limited to 'sys/netinet/ip_options.c')
-rw-r--r-- | sys/netinet/ip_options.c | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/sys/netinet/ip_options.c b/sys/netinet/ip_options.c index 8986275..a198fc0 100644 --- a/sys/netinet/ip_options.c +++ b/sys/netinet/ip_options.c @@ -369,10 +369,7 @@ bad: * to be picked up later by ip_srcroute if the receiver is interested. */ static void -save_rte(m, option, dst) - struct mbuf *m; - u_char *option; - struct in_addr dst; +save_rte(struct mbuf *m, u_char *option, struct in_addr dst) { unsigned olen; struct ipopt_tag *opts; @@ -399,8 +396,7 @@ save_rte(m, option, dst) * The first hop is placed before the options, will be removed later. */ struct mbuf * -ip_srcroute(m0) - struct mbuf *m0; +ip_srcroute(struct mbuf *m0) { register struct in_addr *p, *q; register struct mbuf *m; @@ -461,9 +457,7 @@ ip_srcroute(m0) * XXX should be deleted; last arg currently ignored. */ void -ip_stripoptions(m, mopt) - register struct mbuf *m; - struct mbuf *mopt; +ip_stripoptions(struct mbuf *m, struct mbuf *mopt) { register int i; struct ip *ip = mtod(m, struct ip *); @@ -489,10 +483,7 @@ ip_stripoptions(m, mopt) * XXX This routine assumes that the packet has no options in place. */ struct mbuf * -ip_insertoptions(m, opt, phlen) - register struct mbuf *m; - struct mbuf *opt; - int *phlen; +ip_insertoptions(struct mbuf *m, struct mbuf *opt, int *phlen) { register struct ipoption *p = mtod(opt, struct ipoption *); struct mbuf *n; @@ -545,8 +536,7 @@ ip_insertoptions(m, opt, phlen) * omitting those not copied during fragmentation. */ int -ip_optcopy(ip, jp) - struct ip *ip, *jp; +ip_optcopy(struct ip *ip, struct ip *jp) { register u_char *cp, *dp; int opt, optlen, cnt; |