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]
/
ofproto
/
discovery.c
diff --git
a/ofproto/discovery.c
b/ofproto/discovery.c
index
2868db5
..
c762506
100644
(file)
--- a/
ofproto/discovery.c
+++ b/
ofproto/discovery.c
@@
-102,7
+102,7
@@
discovery_create(const char *re, bool update_resolv_conf,
char local_name[IF_NAMESIZE];
int error;
- d = x
calloc(1,
sizeof *d);
+ d = x
zalloc(
sizeof *d);
/* Controller regular expression. */
error = discovery_set_accept_controller_re(d, re);