summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ac
diff options
context:
space:
mode:
authorcharnier <charnier@FreeBSD.org>1999-10-12 19:27:11 +0000
committercharnier <charnier@FreeBSD.org>1999-10-12 19:27:11 +0000
commit81ad9b5f6a264765d2421cfb80fb73ddd5d2ae46 (patch)
tree5e44db958b4e77169db3ef7f1f3bba0019b9b89f /usr.sbin/ac
parent88e764a2f57375c10b48eeabb699ce0040a749f5 (diff)
downloadFreeBSD-src-81ad9b5f6a264765d2421cfb80fb73ddd5d2ae46.zip
FreeBSD-src-81ad9b5f6a264765d2421cfb80fb73ddd5d2ae46.tar.gz
err -> errx for malloc failure
Diffstat (limited to 'usr.sbin/ac')
-rw-r--r--usr.sbin/ac/ac.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ac/ac.c b/usr.sbin/ac/ac.c
index 47732ee..fa21596 100644
--- a/usr.sbin/ac/ac.c
+++ b/usr.sbin/ac/ac.c
@@ -124,7 +124,7 @@ add_tty(name)
Flags |= AC_T;
if ((tp = NEW(struct tty_list)) == NULL)
- err(1, "malloc");
+ errx(1, "malloc failed");
tp->len = 0; /* full match */
tp->ret = 1; /* do if match */
if (*name == '!') { /* don't do if match */
@@ -210,7 +210,7 @@ update_user(head, name, secs)
return head;
if ((up = NEW(struct user_list)) == NULL)
- err(1, "malloc");
+ errx(1, "malloc failed");
up->next = head;
(void)strncpy(up->name, name, sizeof (up->name) - 1);
up->name[sizeof (up->name) - 1] = '\0'; /* paranoid! */
@@ -440,7 +440,7 @@ log_in(head, up)
* go ahead and log them in
*/
if ((lp = NEW(struct utmp_list)) == NULL)
- err(1, "malloc");
+ errx(1, "malloc failed");
lp->next = head;
head = lp;
memmove((char *)&lp->usr, (char *)up, sizeof (struct utmp));
OpenPOWER on IntegriCloud