Skip to content

Commit eaa3298

Browse files
author
Ilia Alshanetsky
committed
MFB: remove fprintf usage
1 parent a54f690 commit eaa3298

File tree

2 files changed

+20
-9
lines changed

2 files changed

+20
-9
lines changed

ext/xmlrpc/libxmlrpc/xml_element.c

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ static const char rcsid[] = "#(@) $Id$";
4444
* 06/2000
4545
* HISTORY
4646
* $Log$
47+
* Revision 1.9.4.2 2008/12/17 00:30:48 iliaa
48+
*
49+
* MFH: removed unused var
50+
*
4751
* Revision 1.9.4.1 2006/07/30 11:34:02 tony2001
4852
* MFH: fix compile warnings (#38257)
4953
*
@@ -378,7 +382,7 @@ static void xml_element_serialize(xml_element *el, int (*fptr)(void *data, const
378382
depth++;
379383

380384
if(!el) {
381-
fprintf(stderr, "Nothing to write\n");
385+
/* fprintf(stderr, "Nothing to write\n"); */
382386
return;
383387
}
384388
if(!options) {
@@ -725,7 +729,7 @@ xml_element* xml_elem_parse_buf(const char* in_buf, int len, XML_ELEM_INPUT_OPTI
725729
byte_idx > 10 ? 10 : byte_idx,
726730
in_buf + (byte_idx > 10 ? byte_idx - 10 : byte_idx));
727731
}
728-
732+
/*
729733
fprintf(stderr, "expat reports error code %i\n"
730734
"\tdescription: %s\n"
731735
"\tline: %i\n"
@@ -734,7 +738,7 @@ xml_element* xml_elem_parse_buf(const char* in_buf, int len, XML_ELEM_INPUT_OPTI
734738
"\ttotal bytes: %i\n%s ",
735739
err_code, error_str, line_num,
736740
col_num, byte_idx, byte_total, buf);
737-
741+
*/
738742

739743
/* error condition */
740744
if(error) {

ext/xmlrpc/libxmlrpc/xmlrpc.c

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,13 @@ static const char rcsid[] = "#(@) $Id$";
4343
* 9/1999 - 10/2000
4444
* HISTORY
4545
* $Log$
46+
* Revision 1.8.4.4 2008/09/10 00:09:04 felipe
47+
* MFH:
48+
* - Merged fix from SF project (Import Jeff Lawsons patches for XML datetime bug fixes)
49+
* Fixed bugs:
50+
* #45226 (xmlrpc_set_type() segfaults with valid ISO8601 date string)
51+
* #18916 (xmlrpc_set_type() "not working")
52+
*
4653
* Revision 1.8.4.3 2007/09/18 19:49:53 iliaa
4754
*
4855
* Fixed bug #42189 (xmlrpc_set_type() crashes php on invalid datetime
@@ -1161,13 +1168,13 @@ int XMLRPC_AddValueToVector(XMLRPC_VALUE target, XMLRPC_VALUE source) {
11611168
}
11621169
}
11631170
else {
1164-
fprintf (stderr,
1165-
"xmlrpc: attempted to add key/val pair to vector of type array\n");
1171+
/* fprintf (stderr,
1172+
"xmlrpc: attempted to add key/val pair to vector of type array\n"); */
11661173
}
11671174
break;
11681175
default:
1169-
fprintf (stderr,
1170-
"xmlrpc: attempted to add value of unknown type to vector\n");
1176+
/* fprintf (stderr,
1177+
"xmlrpc: attempted to add value of unknown type to vector\n"); */
11711178
break;
11721179
}
11731180
}
@@ -1497,8 +1504,8 @@ void XMLRPC_CleanupValue(XMLRPC_VALUE value) {
14971504
my_free(value);
14981505
break;
14991506
default:
1500-
fprintf (stderr,
1501-
"xmlrpc: attempted to free value of invalid type\n");
1507+
/* fprintf (stderr,
1508+
"xmlrpc: attempted to free value of invalid type\n"); */
15021509
break;
15031510
}
15041511
}

0 commit comments

Comments
 (0)