Blame SOURCES/xmlrpc-c-printf-size_t.patch

3cfbe1
From 25a777bb0ee2e2ee17d87006f76b3cea5d15a9f7 Mon Sep 17 00:00:00 2001
3cfbe1
From: Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
3cfbe1
Date: Mon, 25 Feb 2008 17:48:25 +0100
3cfbe1
Subject: [PATCH 2/9] fixed broken format string modifiers
3cfbe1
3cfbe1
---
3cfbe1
 examples/json.c      |    4 ++--
3cfbe1
 examples/parse_xml.c |    2 +-
3cfbe1
 2 files changed, 3 insertions(+), 3 deletions(-)
3cfbe1
3cfbe1
diff --git a/examples/json.c b/examples/json.c
3cfbe1
index 89fe82b..91ea50d 100644
3cfbe1
--- a/examples/json.c
3cfbe1
+++ b/examples/json.c
3cfbe1
@@ -41,7 +41,7 @@ printAsXml(xmlrpc_value * const valP) {
3cfbe1
     printf("XML-RPC XML:\n");
3cfbe1
 
3cfbe1
     printf("%.*s\n",
3cfbe1
-           XMLRPC_MEMBLOCK_SIZE(char, &out),
3cfbe1
+           (int)XMLRPC_MEMBLOCK_SIZE(char, &out),
3cfbe1
            XMLRPC_MEMBLOCK_CONTENTS(char, &out));
3cfbe1
 
3cfbe1
     XMLRPC_MEMBLOCK_CLEAN(char, &out;;
3cfbe1
@@ -70,7 +70,7 @@ printAsJson(xmlrpc_value * const valP) {
3cfbe1
     printf("JSON:\n");
3cfbe1
 
3cfbe1
     printf("%.*s\n",
3cfbe1
-           XMLRPC_MEMBLOCK_SIZE(char, &out),
3cfbe1
+           (int)XMLRPC_MEMBLOCK_SIZE(char, &out),
3cfbe1
            XMLRPC_MEMBLOCK_CONTENTS(char, &out));
3cfbe1
 
3cfbe1
     XMLRPC_MEMBLOCK_CLEAN(char, &out;;
3cfbe1
diff --git a/examples/parse_xml.c b/examples/parse_xml.c
3cfbe1
index 2e6c508..4f6c308 100644
3cfbe1
--- a/examples/parse_xml.c
3cfbe1
+++ b/examples/parse_xml.c
3cfbe1
@@ -58,7 +58,7 @@ describeXmlElement(const xml_element * const elemP,
3cfbe1
     printf("%sXML element type:         '%s'\n",
3cfbe1
            prefix, xml_element_name(elemP));
3cfbe1
 
3cfbe1
-    printf("%sNumber of child elements: %u\n",
3cfbe1
+    printf("%sNumber of child elements: %zu\n",
3cfbe1
            prefix, xml_element_children_size(elemP));
3cfbe1
 
3cfbe1
     for (i = 0; i < xml_element_children_size(elemP); ++i) {
3cfbe1
-- 
3cfbe1
1.7.6
3cfbe1