From daae13874a07e961b8ffdcf3e87d9cad462183b4 Mon Sep 17 00:00:00 2001 From: Sheldon Hearn Date: Mon, 26 Jul 1999 06:39:46 +0000 Subject: [PATCH] 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(-) diff --git a/usr.sbin/inetd/inetd.c b/usr.sbin/inetd/inetd.c index b3b3a36617a4..ff4383c0883d 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 @@ getconfigent() 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); } }