From f63981f6b27764ca238633434c2d184582eeb6d0 Mon Sep 17 00:00:00 2001 From: sheldonh Date: Mon, 26 Jul 1999 06:39:46 +0000 Subject: Bring two wayward memory allocation failure messages in line with those featured in the rest of the code. --- usr.sbin/inetd/inetd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.sbin') diff --git a/usr.sbin/inetd/inetd.c b/usr.sbin/inetd/inetd.c index b3b3a36..ff4383c 100644 --- a/usr.sbin/inetd/inetd.c +++ b/usr.sbin/inetd/inetd.c @@ -42,7 +42,7 @@ static const char copyright[] = static char sccsid[] = "@(#)from: inetd.c 8.4 (Berkeley) 4/13/94"; #endif static const char rcsid[] = - "$Id: inetd.c,v 1.68 1999/07/22 16:29:48 sheldonh Exp $"; + "$Id: inetd.c,v 1.69 1999/07/23 14:45:21 des Exp $"; #endif /* not lint */ /* @@ -1057,7 +1057,7 @@ enter(cp) sep = (struct servtab *)malloc(sizeof (*sep)); if (sep == (struct servtab *)0) { - syslog(LOG_ERR, "Out of memory."); + syslog(LOG_ERR, "malloc: %m"); exit(EX_OSERR); } *sep = *cp; @@ -1348,7 +1348,7 @@ more: if (sep->se_maxchild) { sep->se_pids = malloc(sep->se_maxchild * sizeof(*sep->se_pids)); if (sep->se_pids == NULL) { - syslog(LOG_ERR, "Out of memory."); + syslog(LOG_ERR, "malloc: %m"); exit(EX_OSERR); } } -- cgit v1.1