diff options
author | 2000-12-31 18:18:56 +0000 | |
---|---|---|
committer | 2000-12-31 18:18:56 +0000 | |
commit | d64be80b90470499415e3199970abc8e476e27f1 (patch) | |
tree | 88d521f729e3d2519b7c126579e42be8e6ea7ed1 | |
parent | Fix non-NBRIDGE case (diff) | |
download | wireguard-openbsd-d64be80b90470499415e3199970abc8e476e27f1.tar.xz wireguard-openbsd-d64be80b90470499415e3199970abc8e476e27f1.zip |
Fix non-NGIF case.
-rw-r--r-- | sys/netinet/ip_ether.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/netinet/ip_ether.c b/sys/netinet/ip_ether.c index 1bb40c560ee..52c77835ba1 100644 --- a/sys/netinet/ip_ether.c +++ b/sys/netinet/ip_ether.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_ether.c,v 1.11 2000/12/30 22:55:33 angelos Exp $ */ +/* $OpenBSD: ip_ether.c,v 1.12 2000/12/31 18:18:56 angelos Exp $ */ /* * The author of this code is Angelos D. Keromytis (kermit@adk.gr) @@ -97,10 +97,14 @@ va_dcl { union sockaddr_union ssrc, sdst; struct ether_header eh; - int iphlen, i; + int iphlen; u_int8_t v; va_list ap; +#if NGIF > 0 + int i; +#endif /* NGIF */ + va_start(ap, m); iphlen = va_arg(ap, int); va_end(ap); |