From: Andreas Gustafsson Date: Fri, 31 Aug 2001 18:49:48 +0000 (+0000) Subject: pullup: string formats X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99570764b964c7b7e106b9520a5f9921a5f71da0;p=thirdparty%2Fbind9.git pullup: string formats --- diff --git a/lib/isc/unix/time.c b/lib/isc/unix/time.c index 562e3b7450a..2184c304e79 100644 --- a/lib/isc/unix/time.c +++ b/lib/isc/unix/time.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: time.c,v 1.29.4.1 2001/01/09 22:51:29 bwelling Exp $ */ +/* $Id: time.c,v 1.29.4.2 2001/08/31 18:49:48 gson Exp $ */ #include @@ -141,7 +141,7 @@ isc_time_now(isc_time_t *t) { REQUIRE(t != NULL); if (gettimeofday(&tv, NULL) == -1) { - UNEXPECTED_ERROR(__FILE__, __LINE__, strerror(errno)); + UNEXPECTED_ERROR(__FILE__, __LINE__, "%s", strerror(errno)); return (ISC_R_UNEXPECTED); } @@ -181,7 +181,7 @@ isc_time_nowplusinterval(isc_time_t *t, isc_interval_t *i) { INSIST(i->nanoseconds < NS_PER_S); if (gettimeofday(&tv, NULL) == -1) { - UNEXPECTED_ERROR(__FILE__, __LINE__, strerror(errno)); + UNEXPECTED_ERROR(__FILE__, __LINE__, "%s", strerror(errno)); return (ISC_R_UNEXPECTED); }