From 3ed5fa04415abff34e76b0ad5f51bb77f292b474 Mon Sep 17 00:00:00 2001 From: christos Date: Wed, 30 Aug 2006 16:57:59 +0000 Subject: [PATCH] Fix initializers. --- sys/net/if_pppoe.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/sys/net/if_pppoe.c b/sys/net/if_pppoe.c index 57b8a13743f6..ec94c8fc7f77 100644 --- a/sys/net/if_pppoe.c +++ b/sys/net/if_pppoe.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_pppoe.c,v 1.71 2006/08/05 17:20:54 pavel Exp $ */ +/* $NetBSD: if_pppoe.c,v 1.72 2006/08/30 16:57:59 christos Exp $ */ /*- * Copyright (c) 2002 The NetBSD Foundation, Inc. @@ -37,7 +37,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: if_pppoe.c,v 1.71 2006/08/05 17:20:54 pavel Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_pppoe.c,v 1.72 2006/08/30 16:57:59 christos Exp $"); #include "pppoe.h" #include "bpfilter.h" @@ -151,8 +151,8 @@ struct pppoe_softc { }; /* incoming traffic will be queued here */ -struct ifqueue ppoediscinq = { NULL }; -struct ifqueue ppoeinq = { NULL }; +struct ifqueue ppoediscinq = { .ifq_maxlen = IFQ_MAXLEN }; +struct ifqueue ppoeinq = { .ifq_maxlen = IFQ_MAXLEN }; #ifdef __HAVE_GENERIC_SOFT_INTERRUPTS void * pppoe_softintr = NULL; @@ -220,9 +220,6 @@ pppoeattach(int count) LIST_INIT(&pppoe_softc_list); if_clone_attach(&pppoe_cloner); - ppoediscinq.ifq_maxlen = IFQ_MAXLEN; - ppoeinq.ifq_maxlen = IFQ_MAXLEN; - #ifdef __HAVE_GENERIC_SOFT_INTERRUPTS pppoe_softintr = softintr_establish(IPL_SOFTNET, pppoe_softintr_handler, NULL); #endif