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