errx()/strerror() -> err()
This commit is contained in:
parent
21687047cf
commit
a5b0f3020c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=94030
@ -308,7 +308,7 @@ main(int argc, char *argv[])
|
||||
/* XXX - should be cleaner */
|
||||
if (!all && ttydev == NODEV && pid == -1 && !nuids) {
|
||||
if ((uids = malloc(sizeof (*uids))) == NULL)
|
||||
errx(1, "malloc: %s", strerror(errno));
|
||||
err(1, "malloc");
|
||||
nuids = 1;
|
||||
*uids = getuid();
|
||||
}
|
||||
@ -421,7 +421,7 @@ getuids(const char *arg, int *nuids)
|
||||
moreuids = realloc(uids, alloc * sizeof (*uids));
|
||||
if (moreuids == NULL) {
|
||||
free(uids);
|
||||
errx(1, "realloc: %s", strerror(errno));
|
||||
err(1, "realloc");
|
||||
}
|
||||
uids = moreuids;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user