Add new function xzalloc(n) as a shorthand for xcalloc(1, n).
[sliver-openvswitch.git] / extras / ezio / ovs-switchui.c
index 0f6640e..e56f83e 100644 (file)
@@ -1247,7 +1247,7 @@ allocate_message(struct message **msgp)
 {
     if (!*msgp) {
         /* Allocate and initialize message. */
-        *msgp = xcalloc(1, sizeof **msgp);
+        *msgp = xzalloc(sizeof **msgp);
         (*msgp)->index = n_messages;
 
         /* Add to list of messages. */