diff options
| author | Ben Pfaff <blp@nicira.com> | 2009-07-22 16:33:43 -0700 |
|---|---|---|
| committer | Ben Pfaff <blp@nicira.com> | 2009-07-30 16:07:13 -0700 |
| commit | fd30311c8701d297f31f6dd92c628d1d9112911e (patch) | |
| tree | 27de9fd70be4174712d4d3539e079ebc2c74d5f9 /lib/shash.c | |
| parent | 78299b0a6871a31c8b0cce5ef3f67ab465ab094f (diff) | |
| download | openvswitch-fd30311c8701d297f31f6dd92c628d1d9112911e.tar.gz | |
shash: Introduce new macros SHASH_FOR_EACH, SHASH_FOR_EACH_SAFE.
This is both more convenient and cleaner than using HMAP_FOR_EACH(_SAFE)
directly.
Diffstat (limited to 'lib/shash.c')
| -rw-r--r-- | lib/shash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/shash.c b/lib/shash.c index f1785139d..7bb8cd70b 100644 --- a/lib/shash.c +++ b/lib/shash.c @@ -44,7 +44,7 @@ shash_clear(struct shash *sh) { struct shash_node *node, *next; - HMAP_FOR_EACH_SAFE (node, next, struct shash_node, node, &sh->map) { + SHASH_FOR_EACH_SAFE (node, next, sh) { hmap_remove(&sh->map, &node->node); free(node->name); free(node); |
