[ovs-dev] [PATCH 2/9] Check invariants earlier in vconn and stream code.
Justin Pettit
jpettit at nicira.com
Tue Jan 5 21:50:17 UTC 2010
On Dec 21, 2009, at 1:15 PM, Ben Pfaff wrote:
> void
> diff --git a/lib/vconn.c b/lib/vconn.c
> index b11650f..1c440fb 100644
> --- a/lib/vconn.c
> +++ b/lib/vconn.c
> @@ -1444,6 +1444,8 @@ vconn_init(struct vconn *vconn, struct vconn_class *class, int connect_status,
> vconn->local_ip = 0;
> vconn->local_port = 0;
> vconn->name = xstrdup(name);
> + assert(vconn->state != VCS_CONNECTING || class->connect);
> +
> }
It appears an extra line was added unnecessarily. :)
Otherwise, looks good.
--Justin
More information about the dev
mailing list