summaryrefslogtreecommitdiff
path: root/ext/standard/ftp_fopen_wrapper.c
diff options
context:
space:
mode:
authorSara Golemon <pollita@php.net>2003-06-18 03:26:29 +0000
committerSara Golemon <pollita@php.net>2003-06-18 03:26:29 +0000
commit66881b5f2cd92d304166089b4e2611652bf1a959 (patch)
tree18457ab56044e3299a7a7243ec7dbb1719402c8c /ext/standard/ftp_fopen_wrapper.c
parent705967daec0ecd0cc522dcc9555b1a463a33a727 (diff)
downloadphp-git-66881b5f2cd92d304166089b4e2611652bf1a959.tar.gz
Fix compiler warnings
Diffstat (limited to 'ext/standard/ftp_fopen_wrapper.c')
-rw-r--r--ext/standard/ftp_fopen_wrapper.c4
1 files changed, 2 insertions, 2 deletions
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;