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

49 lines
1.7 KiB
Diff
Raw Normal View History

2010-10-09 10:44:20 +00:00
From c06a722a77198ae42fb79b67d185556ac6c1e246 Mon Sep 17 00:00:00 2001
2008-02-26 21:27:37 +00:00
From: Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Date: Mon, 25 Feb 2008 17:48:25 +0100
2010-10-09 10:44:20 +00:00
Subject: [PATCH 2/7] fixed broken format string modifiers
2008-02-26 21:27:37 +00:00
---
2010-10-09 10:44:20 +00:00
examples/json.c | 4 ++--
2009-11-21 14:02:54 +00:00
tools/xmlrpc_pstream/xmlrpc_pstream.cpp | 2 +-
2010-10-09 10:44:20 +00:00
2 files changed, 3 insertions(+), 3 deletions(-)
2008-02-26 21:27:37 +00:00
2010-10-09 10:44:20 +00:00
diff --git a/examples/json.c b/examples/json.c
index 89fe82b..91ea50d 100644
--- a/examples/json.c
+++ b/examples/json.c
@@ -41,7 +41,7 @@ printAsXml(xmlrpc_value * const valP) {
printf("XML-RPC XML:\n");
printf("%.*s\n",
- XMLRPC_MEMBLOCK_SIZE(char, &out),
+ (int)XMLRPC_MEMBLOCK_SIZE(char, &out),
XMLRPC_MEMBLOCK_CONTENTS(char, &out));
XMLRPC_MEMBLOCK_CLEAN(char, &out);
@@ -70,7 +70,7 @@ printAsJson(xmlrpc_value * const valP) {
printf("JSON:\n");
printf("%.*s\n",
- XMLRPC_MEMBLOCK_SIZE(char, &out),
+ (int)XMLRPC_MEMBLOCK_SIZE(char, &out),
XMLRPC_MEMBLOCK_CONTENTS(char, &out));
XMLRPC_MEMBLOCK_CLEAN(char, &out);
2009-11-21 14:02:54 +00:00
diff --git a/tools/xmlrpc_pstream/xmlrpc_pstream.cpp b/tools/xmlrpc_pstream/xmlrpc_pstream.cpp
index 1417708..0d6ec11 100644
--- a/tools/xmlrpc_pstream/xmlrpc_pstream.cpp
+++ b/tools/xmlrpc_pstream/xmlrpc_pstream.cpp
@@ -103,7 +103,7 @@ bytestringValFromParm(string const& valueString) {
if (valueString.length() / 2 * 2 != valueString.length())
throwf("Hexadecimal text is not an even "
- "number of characters (it is %u characters)",
+ "number of characters (it is %zu characters)",
valueString.length());
else {
vector<unsigned char> byteString(valueString.length() / 2);
2008-02-26 21:27:37 +00:00
--
2010-10-09 10:44:20 +00:00
1.7.2.3
2008-02-26 21:27:37 +00:00