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
|
|
@ -792,7 +792,7 @@ static int cmd_start(int argc, char *argv[]) {
|
|||
c = "tincd";
|
||||
|
||||
int nargc = 0;
|
||||
char **nargv = xmalloc_and_zero((optind + argc) * sizeof *nargv);
|
||||
char **nargv = xzalloc((optind + argc) * sizeof *nargv);
|
||||
|
||||
nargv[nargc++] = c;
|
||||
for(int i = 1; i < optind; i++)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue