sset: Make sset iteration check the type of the nodes it's iterating.
authorBen Pfaff <blp@ovn.org>
Tue, 9 Feb 2016 00:52:44 +0000 (16:52 -0800)
committerBen Pfaff <blp@ovn.org>
Tue, 9 Feb 2016 06:45:37 +0000 (22:45 -0800)
commit05e43c5ddca89236e6a674b3a6e5e8b6f98591e4
tree97f375cd040e6d4b2449168fe31d1850119e27f1
parentb54d69df57c02119301f7b6ca1dca06eef7b648b
sset: Make sset iteration check the type of the nodes it's iterating.

Without this additional check, SSET_FOR_EACH is happy to iterate over any
type that has a struct hmap member named 'map'.  We have a number of these:
hmapx, shash, simap, and smap, in addition to sset.

I guess another approach would be give each of these a unique member name,
but the short name 'map' is nice too.

Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Russell Bryant <russell@ovn.org>
lib/sset.h