summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhenning <henning@openbsd.org>2011-07-05 20:00:14 +0000
committerhenning <henning@openbsd.org>2011-07-05 20:00:14 +0000
commit62fc783d9d57a237bd8d8c86e41d2a334421c50d (patch)
treebe0e1f05fb4a8435e80a577b8a31f08e1a77221b
parentuse IFQ_IS_EMPTY instead of fiddling with ifqueue internals - 3 cases (diff)
downloadwireguard-openbsd-62fc783d9d57a237bd8d8c86e41d2a334421c50d.tar.xz
wireguard-openbsd-62fc783d9d57a237bd8d8c86e41d2a334421c50d.zip
ifqueues in BSS don't need NULL init, especially not absolutely incorrect
ones that make assumptions about ifqueue internals... ok ryan claudio
-rw-r--r--sys/net/if_pppoe.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/if_pppoe.c b/sys/net/if_pppoe.c
index e035ea87529..e386495c435 100644
--- a/sys/net/if_pppoe.c
+++ b/sys/net/if_pppoe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_pppoe.c,v 1.31 2009/07/13 16:23:28 claudio Exp $ */
+/* $OpenBSD: if_pppoe.c,v 1.32 2011/07/05 20:00:14 henning Exp $ */
/* $NetBSD: if_pppoe.c,v 1.51 2003/11/28 08:56:48 keihan Exp $ */
/*
@@ -148,8 +148,8 @@ struct pppoe_softc {
};
/* incoming traffic will be queued here */
-struct ifqueue pppoediscinq = { NULL };
-struct ifqueue pppoeinq = { NULL };
+struct ifqueue pppoediscinq;
+struct ifqueue pppoeinq;
extern int sppp_ioctl(struct ifnet *, unsigned long, void *);