summaryrefslogtreecommitdiff
path: root/ofproto/pinsched.c
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2009-09-28 13:56:42 -0700
committerBen Pfaff <blp@nicira.com>2009-11-04 14:52:32 -0800
commitec6fde61c85ff6a57b05d422a9d8b5ef679ad928 (patch)
treeb65878fb27521f0f7e3e5bc7b4b9c7b1583f7e5e /ofproto/pinsched.c
parentac718c9dbde6340a85d18c5c8d555d8e0ec88bb3 (diff)
downloadopenvswitch-ec6fde61c85ff6a57b05d422a9d8b5ef679ad928.tar.gz
Add new function xzalloc(n) as a shorthand for xcalloc(1, n).
Diffstat (limited to 'ofproto/pinsched.c')
-rw-r--r--ofproto/pinsched.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ofproto/pinsched.c b/ofproto/pinsched.c
index 0afd22ff6..a4f5bfad5 100644
--- a/ofproto/pinsched.c
+++ b/ofproto/pinsched.c
@@ -227,7 +227,7 @@ pinsched_create(int rate_limit, int burst_limit, struct switch_status *ss)
{
struct pinsched *ps;
- ps = xcalloc(1, sizeof *ps);
+ ps = xzalloc(sizeof *ps);
port_array_init(&ps->queues);
ps->n_queued = 0;
ps->last_tx_port = PORT_ARRAY_SIZE;