summaryrefslogtreecommitdiff
path: root/sys/net/if_var.h
diff options
context:
space:
mode:
authorPatrick Wildt <patrick@cvs.openbsd.org>2020-07-10 13:22:23 +0000
committerPatrick Wildt <patrick@cvs.openbsd.org>2020-07-10 13:22:23 +0000
commit2ab8b96a9014558910b5e8b263ec8b87d01091ba (patch)
tree1cf4de4370435485a8c5e39ae8a862033ac128b1 /sys/net/if_var.h
parent59b2589d33b260697d1e3b750d952a5aaa2953fc (diff)
Change users of IFQ_DEQUEUE(), IFQ_ENQUEUE() and IFQ_LEN() to use the
"new" API. ok dlg@ tobhe@
Diffstat (limited to 'sys/net/if_var.h')
-rw-r--r--sys/net/if_var.h13
1 files changed, 1 insertions, 12 deletions
diff --git a/sys/net/if_var.h b/sys/net/if_var.h
index 7b928ad7bba..13dee98bbff 100644
--- a/sys/net/if_var.h
+++ b/sys/net/if_var.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_var.h,v 1.106 2020/07/04 08:06:08 anton Exp $ */
+/* $OpenBSD: if_var.h,v 1.107 2020/07/10 13:22:22 patrick Exp $ */
/* $NetBSD: if.h,v 1.23 1996/05/07 02:40:27 thorpej Exp $ */
/*
@@ -285,22 +285,11 @@ struct ifg_list {
* IFQ compat on ifq API
*/
-#define IFQ_ENQUEUE(ifq, m, err) \
-do { \
- (err) = ifq_enqueue((ifq), (m)); \
-} while (/* CONSTCOND */0)
-
-#define IFQ_DEQUEUE(ifq, m) \
-do { \
- (m) = ifq_dequeue(ifq); \
-} while (/* CONSTCOND */0)
-
#define IFQ_PURGE(ifq) \
do { \
(void)ifq_purge(ifq); \
} while (/* CONSTCOND */0)
-#define IFQ_LEN(ifq) ifq_len(ifq)
#define IFQ_IS_EMPTY(ifq) ifq_empty(ifq)
#define IFQ_SET_MAXLEN(ifq, len) ifq_set_maxlen(ifq, len)