git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add new function xzalloc(n) as a shorthand for xcalloc(1, n).
[sliver-openvswitch.git]
/
lib
/
learning-switch.c
diff --git
a/lib/learning-switch.c
b/lib/learning-switch.c
index
73464c6
..
99d5ee4
100644
(file)
--- 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 = x
calloc(1,
sizeof *sw);
+ sw = x
zalloc(
sizeof *sw);
sw->max_idle = max_idle;
sw->datapath_id = 0;
sw->last_features_request = time_now() - 1;