Add new function xzalloc(n) as a shorthand for xcalloc(1, n).
[openvswitch] / ofproto / status.c
index b2cb93568abc91fc0872fd5bb914f8d8acdf6f7e..5e61888242cf4cccdf68548aa1b7807819deb096 100644 (file)
@@ -177,7 +177,7 @@ switch_status_cb(struct status_reply *sr, void *ss_)
 struct switch_status *
 switch_status_create(const struct ofproto *ofproto)
 {
-    struct switch_status *ss = xcalloc(1, sizeof *ss);
+    struct switch_status *ss = xzalloc(sizeof *ss);
     ss->booted = time_now();
     list_init(&ss->categories);
     ss->config_cat = switch_status_register(ss, "config", config_status_cb,