summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2009-02-14 22:40:21 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2009-02-14 22:40:21 +0000
commit5975ea930ddbeda26c8432c41052ddc5c50a18d2 (patch)
tree54d648faf896c250843c6ce40699b03d734937b5 /sys/dev
parent8779eef752d736e05128ff820feac2bd1c2720ec (diff)
this was not even test compiled without VLAN support
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/if_age.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/if_age.c b/sys/dev/pci/if_age.c
index 42c87a90e0a..4109928fb27 100644
--- a/sys/dev/pci/if_age.c
+++ b/sys/dev/pci/if_age.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_age.c,v 1.1 2009/01/16 05:00:34 kevlo Exp $ */
+/* $OpenBSD: if_age.c,v 1.2 2009/02/14 22:40:20 deraadt Exp $ */
/*-
* Copyright (c) 2008, Pyun YongHyeon <yongari@FreeBSD.org>
@@ -1373,7 +1373,7 @@ age_rxeof(struct age_softc *sc, struct rx_rdesc *rxrd)
struct age_rxdesc *rxd;
struct rx_desc *desc;
struct mbuf *mp, *m;
- uint32_t status, index, vtag;
+ uint32_t status, index;
int count, nsegs, pktlen;
int rx_cons;
@@ -1493,7 +1493,7 @@ age_rxeof(struct age_softc *sc, struct rx_rdesc *rxrd)
#if NVLAN > 0
/* Check for VLAN tagged frames. */
if (status & AGE_RRD_VLAN) {
- vtag = AGE_RX_VLAN(letoh32(rxrd->vtags));
+ u_int32_t vtag = AGE_RX_VLAN(letoh32(rxrd->vtags));
m->m_pkthdr.ether_vtag =
AGE_RX_VLAN_TAG(vtag);
m->m_flags |= M_VLANTAG;