mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 14:25:26 +00:00
Add new function xzalloc(n) as a shorthand for xcalloc(1, n).
This commit is contained in:
@@ -161,7 +161,7 @@ process_register(const char *name, pid_t pid)
|
||||
|
||||
assert(sigchld_is_blocked());
|
||||
|
||||
p = xcalloc(1, sizeof *p);
|
||||
p = xzalloc(sizeof *p);
|
||||
p->pid = pid;
|
||||
slash = strrchr(name, '/');
|
||||
p->name = xstrdup(slash ? slash + 1 : name);
|
||||
|
Reference in New Issue
Block a user