]> granicus.if.org Git - php/commitdiff
Fix compiler warnings
authorSara Golemon <pollita@php.net>
Wed, 18 Jun 2003 03:26:29 +0000 (03:26 +0000)
committerSara Golemon <pollita@php.net>
Wed, 18 Jun 2003 03:26:29 +0000 (03:26 +0000)
ext/standard/ftp_fopen_wrapper.c

index e9f75b55c2389f647c3e0b2c810d11385254c9f7..f21f2fc0be7bdc805acdc942ad8597494bb89cb9 100644 (file)
@@ -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;