Looks good.  I think the man page prototype is missing a comma.

--Justin


On Mar 4, 2011, at 12:41 PM, Ben Pfaff wrote:

> This "while" loop in do_add_if() is supposed to split up everything after
> the interface name with ',' as the delimiter, but it didn't do that
> correctly.
> ---
> utilities/ovs-dpctl.c |    2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/utilities/ovs-dpctl.c b/utilities/ovs-dpctl.c
> index f79909a..658f6ba 100644
> --- a/utilities/ovs-dpctl.c
> +++ b/utilities/ovs-dpctl.c
> @@ -241,7 +241,7 @@ do_add_if(int argc OVS_UNUSED, char *argv[])
>         }
> 
>         shash_init(&args);
> -        while ((option = strtok_r(NULL, "", &save_ptr)) != NULL) {
> +        while ((option = strtok_r(NULL, ",", &save_ptr)) != NULL) {
>             char *save_ptr_2 = NULL;
>             char *key, *value;
> 
> -- 
> 1.7.1
> 
> 
> _______________________________________________
> dev mailing list
> [email protected]
> http://openvswitch.org/mailman/listinfo/dev_openvswitch.org


_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev_openvswitch.org

Reply via email to