silence compiler warning (cast to long and use %ld)

This commit is contained in:
Mark Andrews 2004-05-04 03:24:39 +00:00
parent 578f588228
commit 1ccee0aff3

View 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);