Add new function xzalloc(n) as a shorthand for xcalloc(1, n).
[openvswitch] / tests / test-classifier.c
index 0307e48f540c39676c5175bf66b96bb9e5651209..d36c8eb1a10e64179377cae395c6c41d494bd586 100644 (file)
@@ -446,7 +446,7 @@ make_rule(int wc_fields, unsigned int priority, int value_pat)
         }
     }
 
-    rule = xcalloc(1, sizeof *rule);
+    rule = xzalloc(sizeof *rule);
     cls_rule_from_flow(&rule->cls_rule, &flow, wildcards,
                        !wildcards ? UINT_MAX : priority);
     return rule;