Rename xmalloc_and_zero() to xzalloc().
The former name is more or less only used by tinc, the latter is used by other projects as well, and shorter as well.
This commit is contained in:
parent
9b9230a0a7
commit
5b07039b07
16 changed files with 24 additions and 24 deletions
|
|
@ -108,7 +108,7 @@ static void update(int fd) {
|
|||
found = ns;
|
||||
break;
|
||||
} else {
|
||||
found = xmalloc_and_zero(sizeof *found);
|
||||
found = xzalloc(sizeof *found);
|
||||
found->name = xstrdup(name);
|
||||
list_insert_before(&node_list, node, found);
|
||||
changed = true;
|
||||
|
|
@ -117,7 +117,7 @@ static void update(int fd) {
|
|||
}
|
||||
|
||||
if(!found) {
|
||||
found = xmalloc_and_zero(sizeof *found);
|
||||
found = xzalloc(sizeof *found);
|
||||
found->name = xstrdup(name);
|
||||
list_insert_tail(&node_list, found);
|
||||
changed = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue