summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorMartin Nagy <mnagy@redhat.com>2009-10-06 00:28:26 +0200
committerSimo Sorce <ssorce@redhat.com>2009-11-06 18:06:05 -0500
commit5f91071ac89de679e9f36e788d7bef757ea0e4bb (patch)
tree34ad9c41e207871fb2f63ffa835ac5417f66244a /server
parent42a21a6fec2925d3cfb0a92aa7e4342912ba9874 (diff)
downloadsssd-5f91071ac89de679e9f36e788d7bef757ea0e4bb.tar.gz
sssd-5f91071ac89de679e9f36e788d7bef757ea0e4bb.tar.bz2
sssd-5f91071ac89de679e9f36e788d7bef757ea0e4bb.zip
Add DLIST_FOR_EACH() macro
Diffstat (limited to 'server')
-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 56241244..0142a131 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 */