Use vconn_init() instead of explicit initialization in one last place.
authorBen Pfaff <blp@nicira.com>
Thu, 11 Sep 2008 18:37:13 +0000 (11:37 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 11 Sep 2008 18:40:01 +0000 (11:40 -0700)
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.

lib/vconn-stream.c

index c419d530cd30be7584c625e2954094dc122375f6..444778a9b3b33eee6ea794a3d448863120a29871 100644 (file)
@@ -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;