summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2005-12-18 22:59:57 +0000
committerfoobar <sniper@php.net>2005-12-18 22:59:57 +0000
commitae5204a02a13b3b9e8c20b39a8714eac00f58c43 (patch)
treefec249b1b437812867b27bb14eea7a59739fd0d3
parent9e8a1bfcbe23bd63e61642dee4060184dbc6d2dd (diff)
downloadphp-git-ae5204a02a13b3b9e8c20b39a8714eac00f58c43.tar.gz
MFH: - Fixed bug #35723 (xmlrpc_introspection.c fails compile per C99 std)
-rw-r--r--NEWS1
-rw-r--r--ext/xmlrpc/libxmlrpc/xmlrpc_introspection.c7
2 files changed, 6 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index d984b3268e..5fa21323f5 100644
--- a/NEWS
+++ b/NEWS
@@ -30,6 +30,7 @@ PHP NEWS
- Fixed many bugs in OCI8. (Tony)
- Fixed crash and leak in mysqli when using 4.1.x client libraries and
connecting to 5.x server. (Andrey)
+- Fixed bug #35723 (xmlrpc_introspection.c fails compile per C99 std). (Jani)
- Fixed bug #35720 (A final constructor can be overwritten). (Marcus)
- Fixed bug #35713 (getopt() returns array with numeric strings when passed
options like '-1'). (Tony)
diff --git a/ext/xmlrpc/libxmlrpc/xmlrpc_introspection.c b/ext/xmlrpc/libxmlrpc/xmlrpc_introspection.c
index 78ec658038..9964d839f3 100644
--- a/ext/xmlrpc/libxmlrpc/xmlrpc_introspection.c
+++ b/ext/xmlrpc/libxmlrpc/xmlrpc_introspection.c
@@ -36,6 +36,9 @@
* Dan Libby, aka danda (dan@libby.com)
* HISTORY
* $Log$
+ * Revision 1.4 2003/12/16 21:00:21 sniper
+ * Fix some compile warnings (patch by Joe Orton)
+ *
* Revision 1.3 2002/07/05 04:43:53 danda
* merged in updates from SF project. bring php repository up to date with xmlrpc-epi version 0.51
*
@@ -74,7 +77,7 @@ static XMLRPC_VALUE xi_system_method_help_cb(XMLRPC_SERVER server, XMLRPC_REQUES
/* iterates through a list of structs and finds the one with key "name" matching
* needle. slow, would benefit from a struct key hash.
*/
-inline XMLRPC_VALUE find_named_value(XMLRPC_VALUE list, const char* needle) {
+static inline XMLRPC_VALUE find_named_value(XMLRPC_VALUE list, const char* needle) {
XMLRPC_VALUE xIter = XMLRPC_VectorRewind(list);
while(xIter) {
const char* name = XMLRPC_VectorGetStringWithID(xIter, xi_token_name);
@@ -104,7 +107,7 @@ static void check_docs_loaded(XMLRPC_SERVER server, void* userData) {
/* utility function for xi_system_describe_methods_cb */
-inline void describe_method(XMLRPC_SERVER server, XMLRPC_VALUE vector, const char* method) {
+static inline void describe_method(XMLRPC_SERVER server, XMLRPC_VALUE vector, const char* method) {
if(method) {
server_method* sm = find_method(server, method);
if(sm) {