diff options
author | Martin Nagy <mnagy@redhat.com> | 2009-10-06 00:28:26 +0200 |
---|---|---|
committer | Simo Sorce <ssorce@redhat.com> | 2009-11-06 18:06:05 -0500 |
commit | 5f91071ac89de679e9f36e788d7bef757ea0e4bb (patch) | |
tree | 34ad9c41e207871fb2f63ffa835ac5417f66244a | |
parent | 42a21a6fec2925d3cfb0a92aa7e4342912ba9874 (diff) | |
download | sssd-5f91071ac89de679e9f36e788d7bef757ea0e4bb.tar.gz sssd-5f91071ac89de679e9f36e788d7bef757ea0e4bb.tar.bz2 sssd-5f91071ac89de679e9f36e788d7bef757ea0e4bb.zip |
Add DLIST_FOR_EACH() macro
-rw-r--r-- | server/util/dlinklist.h | 3 |
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 */ |