Re: [ovs-dev] [PATCH] hmap: Ensure iterator is NULL after iteration.

2015-08-21 Thread Ben Pfaff
On Tue, Aug 18, 2015 at 11:43:18AM -0700, Russell Bryant wrote: > The HMAP_FOR_EACH_()* macros had a usability issue where the iterator > was only NULL at the completion of iteration if the hmap_node was the > first struct member. This change ensures that the iterator is set to > NULL when iterati

[ovs-dev] [PATCH] hmap: Ensure iterator is NULL after iteration.

2015-08-18 Thread Russell Bryant
The HMAP_FOR_EACH_()* macros had a usability issue where the iterator was only NULL at the completion of iteration if the hmap_node was the first struct member. This change ensures that the iterator is set to NULL when iteration ends normally without a 'break'. Signed-off-by: Russell Bryant ---