]>
Commit | Line | Data |
---|---|---|
3671422b | 1 | From c06a722a77198ae42fb79b67d185556ac6c1e246 Mon Sep 17 00:00:00 2001 |
176a4df8 | 2 | From: Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> |
3 | Date: Mon, 25 Feb 2008 17:48:25 +0100 | |
3671422b | 4 | Subject: [PATCH 2/7] fixed broken format string modifiers |
176a4df8 | 5 | |
6 | --- | |
3671422b | 7 | examples/json.c | 4 ++-- |
65007067 | 8 | tools/xmlrpc_pstream/xmlrpc_pstream.cpp | 2 +- |
3671422b | 9 | 2 files changed, 3 insertions(+), 3 deletions(-) |
176a4df8 | 10 | |
3671422b JB |
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); | |
65007067 ER |
33 | diff --git a/tools/xmlrpc_pstream/xmlrpc_pstream.cpp b/tools/xmlrpc_pstream/xmlrpc_pstream.cpp |
34 | index 1417708..0d6ec11 100644 | |
35 | --- a/tools/xmlrpc_pstream/xmlrpc_pstream.cpp | |
36 | +++ b/tools/xmlrpc_pstream/xmlrpc_pstream.cpp | |
37 | @@ -103,7 +103,7 @@ bytestringValFromParm(string const& valueString) { | |
38 | ||
39 | if (valueString.length() / 2 * 2 != valueString.length()) | |
40 | throwf("Hexadecimal text is not an even " | |
41 | - "number of characters (it is %u characters)", | |
42 | + "number of characters (it is %zu characters)", | |
43 | valueString.length()); | |
44 | else { | |
45 | vector<unsigned char> byteString(valueString.length() / 2); | |
46 | -- | |
3671422b | 47 | 1.7.2.3 |
65007067 | 48 |