From: Ben Pfaff Date: Thu, 11 Sep 2008 18:37:13 +0000 (-0700) Subject: Use vconn_init() instead of explicit initialization in one last place. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c2eb869bdb270565b2bb3e368cc61560385d1315;p=openvswitch Use vconn_init() instead of explicit initialization in one last place. Commit b5e16b0723, "Respin "Make vconns keep track of their names and include them in log messages,"" was supposed to do this everywhere, but this instance was evidently missed. --- diff --git a/lib/vconn-stream.c b/lib/vconn-stream.c index c419d530..444778a9 100644 --- a/lib/vconn-stream.c +++ b/lib/vconn-stream.c @@ -296,8 +296,7 @@ new_pstream_vconn(const char *name, int fd, } ps = xmalloc(sizeof *ps); - ps->vconn.class = &pstream_vconn_class; - ps->vconn.connect_status = 0; + vconn_init(&ps->vconn, &pstream_vconn_class, 0, 0, name); ps->fd = fd; ps->accept_cb = accept_cb; *vconnp = &ps->vconn;