summaryrefslogtreecommitdiffstats
path: root/sys/netmpls/mpls_input.c
diff options
context:
space:
mode:
authormpi <mpi@openbsd.org>2013-03-26 13:19:25 +0000
committermpi <mpi@openbsd.org>2013-03-26 13:19:25 +0000
commitdabd68ec8baf6a97d5368a86ec32750b3a57490b (patch)
treee79ac75a1196c343915675f0326ad651d2f047d7 /sys/netmpls/mpls_input.c
parentFix compiler warnings, missing #include. From Thomas Adam. (diff)
downloadwireguard-openbsd-dabd68ec8baf6a97d5368a86ec32750b3a57490b.tar.xz
wireguard-openbsd-dabd68ec8baf6a97d5368a86ec32750b3a57490b.zip
Remove various read-only *maxlen variables and use IFQ_MAXLEN directly.
ok beck@, mikeb@
Diffstat (limited to 'sys/netmpls/mpls_input.c')
-rw-r--r--sys/netmpls/mpls_input.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/netmpls/mpls_input.c b/sys/netmpls/mpls_input.c
index a08abbb2a1a..de1a2242278 100644
--- a/sys/netmpls/mpls_input.c
+++ b/sys/netmpls/mpls_input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mpls_input.c,v 1.32 2011/07/06 02:42:28 henning Exp $ */
+/* $OpenBSD: mpls_input.c,v 1.33 2013/03/26 13:19:26 mpi Exp $ */
/*
* Copyright (c) 2008 Claudio Jeker <claudio@openbsd.org>
@@ -47,7 +47,6 @@
#include <netmpls/mpls.h>
struct ifqueue mplsintrq;
-int mplsqmaxlen = IFQ_MAXLEN;
extern int mpls_inkloop;
#ifdef MPLS_DEBUG
@@ -65,7 +64,7 @@ struct mbuf *mpls_do_error(struct mbuf *, int, int, int);
void
mpls_init(void)
{
- IFQ_SET_MAXLEN(&mplsintrq, mplsqmaxlen);
+ IFQ_SET_MAXLEN(&mplsintrq, IFQ_MAXLEN);
}
void