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
|
|
@ -224,7 +224,7 @@ static void periodic_handler(void *data) {
|
|||
|
||||
if(!found) {
|
||||
logger(DEBUG_CONNECTIONS, LOG_INFO, "Autoconnecting to %s", n->name);
|
||||
outgoing_t *outgoing = xmalloc_and_zero(sizeof *outgoing);
|
||||
outgoing_t *outgoing = xzalloc(sizeof *outgoing);
|
||||
outgoing->name = xstrdup(n->name);
|
||||
list_insert_tail(outgoing_list, outgoing);
|
||||
setup_outgoing_connection(outgoing);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue