xmlrpc-c/xmlrpc-c-va_list.patch

42 lines
1.4 KiB
Diff
Raw Normal View History

From aa0c7af2685446c8950bb31c88811745cf2696eb Mon Sep 17 00:00:00 2001
2008-11-15 13:43:43 +00:00
From: Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Date: Sat, 15 Nov 2008 12:07:25 +0100
Subject: [PATCH 4/5] 'va_list' param must be non-const
2008-11-15 13:43:43 +00:00
vasprintf(3) uses a non-const 'va_list ap' parameter.
Hence, do not accept a 'const' in the wrapper function.
2008-11-15 13:43:43 +00:00
---
include/xmlrpc-c/util.h | 2 +-
lib/libutil/error.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/xmlrpc-c/util.h b/include/xmlrpc-c/util.h
2009-11-21 14:02:54 +00:00
index 30689bc..777ee01 100644
2008-11-15 13:43:43 +00:00
--- a/include/xmlrpc-c/util.h
+++ b/include/xmlrpc-c/util.h
@@ -140,7 +140,7 @@ void
xmlrpc_set_fault_formatted_v(xmlrpc_env * const envP,
int const code,
const char * const format,
- va_list const args);
+ va_list args);
/* The same as the above, but using a printf-style format string. */
void
diff --git a/lib/libutil/error.c b/lib/libutil/error.c
2009-11-21 14:02:54 +00:00
index 02e66c9..1e0ab12 100644
2008-11-15 13:43:43 +00:00
--- a/lib/libutil/error.c
+++ b/lib/libutil/error.c
2009-11-21 14:02:54 +00:00
@@ -88,7 +88,7 @@ void
2008-11-15 13:43:43 +00:00
xmlrpc_set_fault_formatted_v(xmlrpc_env * const envP,
int const code,
const char * const format,
- va_list const args) {
+ va_list args) {
const char * faultDescription;
--
2009-11-21 14:02:54 +00:00
1.6.5.2
2008-11-15 13:43:43 +00:00