diff options
author | julian <julian@FreeBSD.org> | 2001-09-07 07:19:12 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 2001-09-07 07:19:12 +0000 |
commit | 3cc9960fd1b52e850d61e0fdab1cf2cb1a9f3735 (patch) | |
tree | d013f55450d9cf7688fbd35f24d13797e19ae112 /sys/netinet/ip_encap.c | |
parent | f307b418db18dcf0791a53a9429ff162625fbd9c (diff) | |
download | FreeBSD-src-3cc9960fd1b52e850d61e0fdab1cf2cb1a9f3735.zip FreeBSD-src-3cc9960fd1b52e850d61e0fdab1cf2cb1a9f3735.tar.gz |
Patches from KAME to remove usage of Varargs in existing
IPV4 code. For now they will still have some in the developing stuff (IPv6)
Submitted by: Keiichi SHIMA / <keiichi@iij.ad.jp>
Obtained from: KAME
Diffstat (limited to 'sys/netinet/ip_encap.c')
-rw-r--r-- | sys/netinet/ip_encap.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/sys/netinet/ip_encap.c b/sys/netinet/ip_encap.c index 2476d71..e3844df 100644 --- a/sys/netinet/ip_encap.c +++ b/sys/netinet/ip_encap.c @@ -127,26 +127,17 @@ encap_init() #ifdef INET void -#if __STDC__ -encap4_input(struct mbuf *m, ...) -#else -encap4_input(m, va_alist) +encap4_input(m, off) struct mbuf *m; - va_dcl -#endif + int off; { - int off, proto; struct ip *ip; + int proto; struct sockaddr_in s, d; const struct protosw *psw; struct encaptab *ep, *match; - va_list ap; int prio, matchprio; - va_start(ap, m); - off = va_arg(ap, int); - va_end(ap); - ip = mtod(m, struct ip *); proto = ip->ip_p; |