]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
silence compiler warning (cast to long and use %ld)
authorMark Andrews <marka@isc.org>
Tue, 4 May 2004 03:24:39 +0000 (03:24 +0000)
committerMark Andrews <marka@isc.org>
Tue, 4 May 2004 03:24:39 +0000 (03:24 +0000)
bin/named/unix/os.c

index 0c4717b113afef04536d57da043e3f89894bb0b0..1fd9e08a5f03d9a357c8671c8bff1629885d2b58 100644 (file)
@@ -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 <config.h>
 #include <stdarg.h>
@@ -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);