diff options
| author | 2013-03-26 13:19:25 +0000 | |
|---|---|---|
| committer | 2013-03-26 13:19:25 +0000 | |
| commit | dabd68ec8baf6a97d5368a86ec32750b3a57490b (patch) | |
| tree | e79ac75a1196c343915675f0326ad651d2f047d7 /sys/netmpls/mpls_input.c | |
| parent | Fix compiler warnings, missing #include. From Thomas Adam. (diff) | |
| download | wireguard-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.c | 5 |
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 |
