]> git.pld-linux.org Git - packages/xmlrpc-c.git/blob - xmlrpc-c-printf-size_t.patch
- updated to 1.32.05 (svn rev 2451; note: new sonames of C++ libs)
[packages/xmlrpc-c.git] / xmlrpc-c-printf-size_t.patch
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
5
6 ---
7  examples/json.c      |    4 ++--
8  examples/parse_xml.c |    2 +-
9  2 files changed, 3 insertions(+), 3 deletions(-)
10
11 diff --git a/examples/json.c b/examples/json.c
12 index 89fe82b..91ea50d 100644
13 --- a/examples/json.c
14 +++ b/examples/json.c
15 @@ -41,7 +41,7 @@ printAsXml(xmlrpc_value * const valP) {
16      printf("XML-RPC XML:\n");
17  
18      printf("%.*s\n",
19 -           XMLRPC_MEMBLOCK_SIZE(char, &out),
20 +           (int)XMLRPC_MEMBLOCK_SIZE(char, &out),
21             XMLRPC_MEMBLOCK_CONTENTS(char, &out));
22  
23      XMLRPC_MEMBLOCK_CLEAN(char, &out);
24 @@ -70,7 +70,7 @@ printAsJson(xmlrpc_value * const valP) {
25      printf("JSON:\n");
26  
27      printf("%.*s\n",
28 -           XMLRPC_MEMBLOCK_SIZE(char, &out),
29 +           (int)XMLRPC_MEMBLOCK_SIZE(char, &out),
30             XMLRPC_MEMBLOCK_CONTENTS(char, &out));
31  
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));
40  
41 -    printf("%sNumber of child elements: %u\n",
42 +    printf("%sNumber of child elements: %zu\n",
43             prefix, xml_element_children_size(elemP));
44  
45      for (i = 0; i < xml_element_children_size(elemP); ++i) {
46 -- 
47 1.7.6
48
This page took 0.028743 seconds and 3 git commands to generate.