diff options
| author | Julian Elischer <julian@FreeBSD.org> | 2001-09-07 07:19:12 +0000 |
|---|---|---|
| committer | Julian Elischer <julian@FreeBSD.org> | 2001-09-07 07:19:12 +0000 |
| commit | ff265614c166724356a66c341ff3bb9c4ee3c260 (patch) | |
| tree | d013f55450d9cf7688fbd35f24d13797e19ae112 /sys/netinet | |
| parent | f97e0a071943145b1545078f207b0aa628c402eb (diff) | |
Notes
Diffstat (limited to 'sys/netinet')
| -rw-r--r-- | sys/netinet/ip_encap.c | 15 | ||||
| -rw-r--r-- | sys/netinet/ip_encap.h | 2 |
2 files changed, 4 insertions, 13 deletions
diff --git a/sys/netinet/ip_encap.c b/sys/netinet/ip_encap.c index 2476d7159176..e3844dfdd8e5 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; diff --git a/sys/netinet/ip_encap.h b/sys/netinet/ip_encap.h index 38df6f94784c..94f534bd5538 100644 --- a/sys/netinet/ip_encap.h +++ b/sys/netinet/ip_encap.h @@ -49,7 +49,7 @@ struct encaptab { }; void encap_init __P((void)); -void encap4_input __P((struct mbuf *, ...)); +void encap4_input __P((struct mbuf *, int)); int encap6_input __P((struct mbuf **, int *, int)); const struct encaptab *encap_attach __P((int, int, const struct sockaddr *, const struct sockaddr *, const struct sockaddr *, |
