mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-08 21:42:06 -04:00
silence compiler warning (cast to long and use %ld)
This commit is contained in:
parent
578f588228
commit
1ccee0aff3
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue