summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authormschuett <mschuett@NetBSD.org>2009-04-20 09:56:07 +0000
committermschuett <mschuett@NetBSD.org>2009-04-20 09:56:07 +0000
commit0d53a16d765a64e1dfdc70a0460e3b4f05c994ce (patch)
tree08cc00b388cd9ee42c69dbc95e3986a9f43dda4c /sys/dev
parent51004b901f4a49ae20ffac6d6f8a69bfeafac22d (diff)
Add queue macros SLIST_FOREACH_SAFE, STAILQ_FOREACH_SAFE, STAILQ_LAST,
SIMPLEQ_CONCAT, and SIMPLEQ_LAST. Remove seperate definitions outside of queue.h.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ieee1394/fw_port.h15
1 files changed, 1 insertions, 14 deletions
diff --git a/sys/dev/ieee1394/fw_port.h b/sys/dev/ieee1394/fw_port.h
index 75d5e4d7180..200b6fa9e5b 100644
--- a/sys/dev/ieee1394/fw_port.h
+++ b/sys/dev/ieee1394/fw_port.h
@@ -1,4 +1,4 @@
-/* $NetBSD: fw_port.h,v 1.31 2009/03/18 16:00:18 cegger Exp $ */
+/* $NetBSD: fw_port.h,v 1.32 2009/04/20 09:56:07 mschuett Exp $ */
/*
* Copyright (c) 2004 KIYOHARA Takashi
* All rights reserved.
@@ -1313,19 +1313,6 @@ typedef struct scsipi_inquiry_data sbp_scsi_inquiry_data;
#define rounddown(x, y) ((x) / (y) * (y))
#endif
-
-/*
- * additional queue macros for NetBSD
- */
-#define STAILQ_LAST(head, type, field) \
- (STAILQ_EMPTY((head)) ? (struct type *)NULL : \
- (struct type *) \
- ((char *)(head)->stqh_last - (size_t)&((struct type *)0)->field))
-#define STAILQ_FOREACH_SAFE(var, head, field, _var) \
- (void)(_var); \
- STAILQ_FOREACH(var, head, field)
-
-
/*
* additional mbuf macros for NetBSD
*/