From: Mark Andrews Date: Tue, 4 May 2004 03:24:39 +0000 (+0000) Subject: silence compiler warning (cast to long and use %ld) X-Git-Tag: v9.2.3rc4^3~35 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=1ccee0aff35cff5a5bd5da41972e29492da3617e;p=thirdparty%2Fbind9.git silence compiler warning (cast to long and use %ld) --- diff --git a/bin/named/unix/os.c b/bin/named/unix/os.c index 0c4717b113a..1fd9e08a5f0 100644 --- a/bin/named/unix/os.c +++ b/bin/named/unix/os.c @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: os.c,v 1.67 2004/04/15 04:49:50 marka Exp $ */ +/* $Id: os.c,v 1.68 2004/05/04 03:24:39 marka Exp $ */ #include #include @@ -616,7 +616,7 @@ ns_os_shutdownmsg(char *command, isc_buffer_t *text) { n = snprintf((char *)isc_buffer_used(text), isc_buffer_availablelength(text), - "pid: %d", pid); + "pid: %ld", (long)pid); /* Only send a message if it is complete. */ if (n < isc_buffer_availablelength(text)) isc_buffer_add(text, n);