summaryrefslogtreecommitdiffstats
path: root/server/util/dlinklist.h
diff options
context:
space:
mode:
Diffstat (limited to 'server/util/dlinklist.h')
-rw-r--r--server/util/dlinklist.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/util/dlinklist.h b/server/util/dlinklist.h
index 562412445..0142a1318 100644
--- a/server/util/dlinklist.h
+++ b/server/util/dlinklist.h
@@ -110,4 +110,7 @@ do { \
} \
} while (0)
+#define DLIST_FOR_EACH(p, list) \
+ for ((p) = (list); (p) != NULL; (p) = (p)->next)
+
#endif /* _DLINKLIST_H */