From 5b3fa239731618d2d1c668cc2cd1f05339f20e8d Mon Sep 17 00:00:00 2001 From: "Liam J. Foy" Date: Tue, 3 May 2005 17:32:23 +0000 Subject: [PATCH] - When calling syslog(3), use %m for errno and lose strerror(3) --- libexec/comsat/comsat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libexec/comsat/comsat.c b/libexec/comsat/comsat.c index 0f0547b12b..79341514f5 100644 --- a/libexec/comsat/comsat.c +++ b/libexec/comsat/comsat.c @@ -33,7 +33,7 @@ * @(#) Copyright (c) 1980, 1993 The Regents of the University of California. All rights reserved. * @(#)comsat.c 8.1 (Berkeley) 6/4/93 * $FreeBSD: src/libexec/comsat/comsat.c,v 1.13.2.1 2002/08/09 02:56:30 johan Exp $ - * $DragonFly: src/libexec/comsat/comsat.c,v 1.4 2005/05/03 17:22:01 liamfoy Exp $ + * $DragonFly: src/libexec/comsat/comsat.c,v 1.5 2005/05/03 17:32:23 liamfoy Exp $ */ #include @@ -145,7 +145,7 @@ onalrm(int signo __unused) if (statbf.st_size > utmpsize) { utmpsize = statbf.st_size + 10 * sizeof(struct utmp); if ((utmp = realloc(utmp, utmpsize)) == NULL) { - syslog(LOG_ERR, "%s", strerror(errno)); + syslog(LOG_ERR, "realloc: %m"); exit(1); } } -- 2.41.0