summaryrefslogtreecommitdiff
path: root/sys/altq/altq_cbq.c
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2003-08-20 12:33:58 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2003-08-20 12:33:58 +0000
commit2c3b98082c6bc60bec82591f811d95304c00a564 (patch)
tree52c12657cfacfeee3ea518e26c0e38e2cb8cc7fc /sys/altq/altq_cbq.c
parentf379a955603e12c5378b2463281e61a9ef4579cc (diff)
#define CBQ_MAXPRI RM_MAXPRIO and use it
Diffstat (limited to 'sys/altq/altq_cbq.c')
-rw-r--r--sys/altq/altq_cbq.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/altq/altq_cbq.c b/sys/altq/altq_cbq.c
index 77ffe4cdc60..64f82fbc138 100644
--- a/sys/altq/altq_cbq.c
+++ b/sys/altq/altq_cbq.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: altq_cbq.c,v 1.16 2003/04/02 14:51:45 henning Exp $ */
+/* $OpenBSD: altq_cbq.c,v 1.17 2003/08/20 12:33:57 henning Exp $ */
/* $KAME: altq_cbq.c,v 1.9 2000/12/14 08:12:45 thorpej Exp $ */
/*
@@ -272,7 +272,7 @@ cbq_add_queue(struct pf_altq *a)
opts = &a->pq_u.cbq_opts;
/* check parameters */
- if (a->priority >= RM_MAXPRIO)
+ if (a->priority >= CBQ_MAXPRI)
return (EINVAL);
/* Get pointers to parent and borrow classes. */