瀏覽代碼

Merge pull request #652 from linuxmaniac/vseva_xmlrpc_fix

xmlrpc: remove redeclaration of snprintf and vsnprintf
Victor Seva 9 年之前
父節點
當前提交
031ea395c5
共有 1 個文件被更改,包括 0 次插入7 次删除
  1. 0 7
      modules/xmlrpc/xmlrpc.c

+ 0 - 7
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);