[sr-dev] git:master:031ea395: Merge pull request #652 from linuxmaniac/vseva_xmlrpc_fix

Victor Seva linuxmaniac at torreviejawireless.org
Fri Jun 3 14:06:51 CEST 2016


Module: kamailio
Branch: master
Commit: 031ea395c5f4febdedd635adef50e0910c0d9131
URL: https://github.com/kamailio/kamailio/commit/031ea395c5f4febdedd635adef50e0910c0d9131

Author: Victor Seva <linuxmaniac at torreviejawireless.org>
Committer: Victor Seva <linuxmaniac at torreviejawireless.org>
Date: 2016-06-03T14:06:45+02:00

Merge pull request #652 from linuxmaniac/vseva_xmlrpc_fix

xmlrpc: remove redeclaration of snprintf and vsnprintf

---

Modified: modules/xmlrpc/xmlrpc.c

---

Diff:  https://github.com/kamailio/kamailio/commit/031ea395c5f4febdedd635adef50e0910c0d9131.diff
Patch: https://github.com/kamailio/kamailio/commit/031ea395c5f4febdedd635adef50e0910c0d9131.patch

---

diff --git a/modules/xmlrpc/xmlrpc.c b/modules/xmlrpc/xmlrpc.c
index cc4d37f..98835f9 100644
--- a/modules/xmlrpc/xmlrpc.c
+++ b/modules/xmlrpc/xmlrpc.c
@@ -146,13 +146,6 @@
 
 MODULE_VERSION
 
-#if defined (__OS_darwin) || defined (__OS_freebsd)
-/* redeclaration of functions from stdio.h throws errors */
-#else
-int snprintf(char *str, size_t size, const char *format, ...);
-int vsnprintf(char *str, size_t size, const char *format, va_list ap);
-#endif
-
 static int process_xmlrpc(sip_msg_t* msg);
 static int dispatch_rpc(sip_msg_t* msg, char* s1, char* s2);
 static int xmlrpc_reply(sip_msg_t* msg, char* code, char* reason);




More information about the sr-dev mailing list