From: Sara Golemon Date: Wed, 18 Jun 2003 03:26:29 +0000 (+0000) Subject: Fix compiler warnings X-Git-Tag: RELEASE_1_0_2~161 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=66881b5f2cd92d304166089b4e2611652bf1a959;p=php Fix compiler warnings --- diff --git a/ext/standard/ftp_fopen_wrapper.c b/ext/standard/ftp_fopen_wrapper.c index e9f75b55c2..f21f2fc0be 100644 --- a/ext/standard/ftp_fopen_wrapper.c +++ b/ext/standard/ftp_fopen_wrapper.c @@ -377,7 +377,7 @@ php_stream * php_stream_url_wrap_ftp(php_stream_wrapper *wrapper, char *path, ch char ip[sizeof("123.123.123.123")]; unsigned short portno; char *hoststart = NULL; - int result, use_ssl, use_ssl_on_data=0; + int result = 0, use_ssl, use_ssl_on_data=0; php_stream *reuseid=NULL; size_t file_size = 0; zval **tmpzval; @@ -742,7 +742,7 @@ static int php_stream_ftp_url_stat(php_stream_wrapper *wrapper, char *url, php_s goto stat_errexit; } - sscanf(tmp_line + 4, "%d", &(ssb->sb.st_size)); + sscanf(tmp_line + 4, "%d", (int *)&(ssb->sb.st_size)); php_stream_close(stream); return 0;