diff options
author | sheldonh <sheldonh@FreeBSD.org> | 1999-07-26 06:39:46 +0000 |
---|---|---|
committer | sheldonh <sheldonh@FreeBSD.org> | 1999-07-26 06:39:46 +0000 |
commit | f63981f6b27764ca238633434c2d184582eeb6d0 (patch) | |
tree | ee2dbdcdb2a01b8a4adc1ca28d7e56530ec1131d /usr.sbin | |
parent | 743eeab6387e1bb4e8c0134b6cf783d15d5bf129 (diff) | |
download | FreeBSD-src-f63981f6b27764ca238633434c2d184582eeb6d0.zip FreeBSD-src-f63981f6b27764ca238633434c2d184582eeb6d0.tar.gz |
Bring two wayward memory allocation failure messages in line with
those featured in the rest of the code.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/inetd/inetd.c | 6 |
1 files changed, 3 insertions, 3 deletions
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); } } |