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

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