diff options
author | Ben Pfaff <blp@nicira.com> | 2009-09-28 13:56:42 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2009-11-04 14:52:32 -0800 |
commit | ec6fde61c85ff6a57b05d422a9d8b5ef679ad928 (patch) | |
tree | b65878fb27521f0f7e3e5bc7b4b9c7b1583f7e5e /ofproto/pinsched.c | |
parent | ac718c9dbde6340a85d18c5c8d555d8e0ec88bb3 (diff) | |
download | openvswitch-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.c | 2 |
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; |