[ovs-dev] [PATCH 2/5] lib/flow: Use C99 declaration in for statement.

Ben Pfaff blp at nicira.com
Fri May 23 17:05:04 UTC 2014


On Thu, May 22, 2014 at 05:37:39PM -0700, Jarno Rajahalme wrote:
> C99 declarations within code are allowed now.  Change the
> FLOW_FOR_EACH_IN_MAP to use loop variable within the for statement.
> This makes this macro more generally useful.
> 
> The loop variable name is suffixed with two underscores with the
> intention that there would be a low likelihood of collision with any
> of the macro parameters.
> 
> Also fix the return type of flow_get_next_in_map().
> 
> Signed-off-by: Jarno Rajahalme <jrajahalme at nicira.com>

Acked-by: Ben Pfaff <blp at nicira.com>



More information about the dev mailing list