X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Frconn.c;h=b6e958eeda0dbf8e746a85b37c711ca5b02456a1;hb=8ecd53084ce42e2e868a9c24c57b2d9a7e59cfc2;hp=c0bc95d8f4dc8b2a4dbba6855f25da7f37094737;hpb=7778bd15dacc1e410b60ff6ec2996c475a875e6e;p=openvswitch diff --git a/lib/rconn.c b/lib/rconn.c index c0bc95d8..b6e958ee 100644 --- a/lib/rconn.c +++ b/lib/rconn.c @@ -89,7 +89,7 @@ struct rconn { time_t last_admitted; /* These values are simply for statistics reporting, not used directly by - * anything internal to the rconn (or the secchan for that matter). */ + * anything internal to the rconn (or ofproto for that matter). */ unsigned int packets_received; unsigned int n_attempted_connections, n_successful_connections; time_t creation_time; @@ -176,7 +176,7 @@ rconn_new_from_vconn(const char *name, struct vconn *vconn) struct rconn * rconn_create(int probe_interval, int max_backoff) { - struct rconn *rc = xcalloc(1, sizeof *rc); + struct rconn *rc = xzalloc(sizeof *rc); rc->state = S_VOID; rc->state_entered = time_now();