summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2007-06-11 15:29:02 +0000
committerimp <imp@FreeBSD.org>2007-06-11 15:29:02 +0000
commite42a97f12ae3857e3ba3996cdea7f492056368c1 (patch)
tree36c4d2949de44fafdb03dfaf67930c93810ebb19
parent219a5fe659b5f4ab5663414840ab571fc219f284 (diff)
downloadFreeBSD-src-e42a97f12ae3857e3ba3996cdea7f492056368c1.zip
FreeBSD-src-e42a97f12ae3857e3ba3996cdea7f492056368c1.tar.gz
Silence a gcc warning in a more canonical way (evl = NULL rather than &evl).
I saw warnings here at one point on the arm build.
-rw-r--r--sys/netgraph/ng_vlan.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/netgraph/ng_vlan.c b/sys/netgraph/ng_vlan.c
index 8148639..cd57f7c 100644
--- a/sys/netgraph/ng_vlan.c
+++ b/sys/netgraph/ng_vlan.c
@@ -341,7 +341,7 @@ ng_vlan_rcvdata(hook_p hook, item_p item)
{
const priv_p priv = NG_NODE_PRIVATE(NG_HOOK_NODE(hook));
struct ether_header *eh;
- struct ether_vlan_header *evl;
+ struct ether_vlan_header *evl = NULL;
int error;
u_int16_t vlan;
struct mbuf *m;
@@ -368,7 +368,6 @@ ng_vlan_rcvdata(hook_p hook, item_p item)
* Ethernet frame; tag is stored out-of-band.
*/
vlan = EVL_VLANOFTAG(m->m_pkthdr.ether_vtag);
- (void)&evl; /* XXX silence GCC */
} else {
if (m->m_len < sizeof(*evl) &&
(m = m_pullup(m, sizeof(*evl))) == NULL) {
OpenPOWER on IntegriCloud