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 /lib/learning-switch.c | |
| parent | ac718c9dbde6340a85d18c5c8d555d8e0ec88bb3 (diff) | |
| download | openvswitch-ec6fde61c85ff6a57b05d422a9d8b5ef679ad928.tar.gz | |
Add new function xzalloc(n) as a shorthand for xcalloc(1, n).
Diffstat (limited to 'lib/learning-switch.c')
| -rw-r--r-- | lib/learning-switch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/learning-switch.c b/lib/learning-switch.c index 73464c688..99d5ee4c0 100644 --- a/lib/learning-switch.c +++ b/lib/learning-switch.c @@ -110,7 +110,7 @@ lswitch_create(struct rconn *rconn, bool learn_macs, int max_idle) struct lswitch *sw; size_t i; - sw = xcalloc(1, sizeof *sw); + sw = xzalloc(sizeof *sw); sw->max_idle = max_idle; sw->datapath_id = 0; sw->last_features_request = time_now() - 1; |
