Skip to content

Commit c205eb5

Browse files
author
Ilia Alshanetsky
committed
Fixed compiler warnings
1 parent 2f8ca07 commit c205eb5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ext/xmlrpc/xmlrpc-epi-php.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767

6868
#include "php.h"
6969
#include "ext/standard/info.h"
70+
#include "ext/date/php_date.h"
7071
#include "php_ini.h"
7172
#include "php_xmlrpc.h"
7273
#include "xmlrpc.h"
@@ -1344,7 +1345,7 @@ int set_zval_xmlrpc_type(zval* value, XMLRPC_VALUE_TYPE newtype) /* {{{ */
13441345
if (newtype == xmlrpc_datetime) {
13451346
XMLRPC_VALUE v = XMLRPC_CreateValueDateTime_ISO8601(NULL, value->value.str.val);
13461347
if (v) {
1347-
time_t timestamp = (time_t) php_parse_date(XMLRPC_GetValueDateTime_ISO8601(v), NULL);
1348+
time_t timestamp = (time_t) php_parse_date((char *)XMLRPC_GetValueDateTime_ISO8601(v), NULL);
13481349
if (timestamp) {
13491350
zval* ztimestamp;
13501351

0 commit comments

Comments
 (0)