]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
%ld and (long) cast for size_t
authorMark Andrews <marka@isc.org>
Wed, 14 Feb 2007 02:39:44 +0000 (02:39 +0000)
committerMark Andrews <marka@isc.org>
Wed, 14 Feb 2007 02:39:44 +0000 (02:39 +0000)
lib/isc/mem.c

index 31a40f1022f5f34e766410c769b7c19c367f9b21..e29bab8f951ed2f051c25e0588fff2d4f2383553 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: mem.c,v 1.130 2007/02/14 00:27:26 marka Exp $ */
+/* $Id: mem.c,v 1.131 2007/02/14 02:39:44 marka Exp $ */
 
 /*! \file */
 
@@ -1979,7 +1979,7 @@ isc_mem_renderxml(isc_mem_t *ctx, xmlTextWriterPtr writer)
                xmlTextWriterStartElement(writer, ISC_XMLCHAR "bucket");
 
                xmlTextWriterStartElement(writer, ISC_XMLCHAR "size");
-               xmlTextWriterWriteFormatString(writer, "%d", i);
+               xmlTextWriterWriteFormatString(writer, "%ld", (long)i);
                xmlTextWriterEndElement(writer); /* size */
 
                xmlTextWriterStartElement(writer, ISC_XMLCHAR "totalgets");
@@ -2025,7 +2025,7 @@ isc_mem_renderxml(isc_mem_t *ctx, xmlTextWriterPtr writer)
                                          ISC_XMLCHAR pool->name);
 
                xmlTextWriterStartElement(writer, ISC_XMLCHAR "size");
-               xmlTextWriterWriteFormatString(writer, "%d", pool->size);
+               xmlTextWriterWriteFormatString(writer, "%ld", (long)pool->size);
                xmlTextWriterEndElement(writer); /* size */
 
                xmlTextWriterStartElement(writer, ISC_XMLCHAR "maxalloc");