Add new function xzalloc(n) as a shorthand for xcalloc(1, n).
[openvswitch] / extras / ezio / ovs-switchui.c
index 0f6640e0c4086f978a3ca3ce7da182c9accaa344..e56f83e077f7fde2a0c29503acfe2474a1376bb9 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. */