]> granicus.if.org Git - php/commitdiff
MFH: Fixed compiler warning on win32.
authorIlia Alshanetsky <iliaa@php.net>
Thu, 17 Mar 2005 17:16:53 +0000 (17:16 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Thu, 17 Mar 2005 17:16:53 +0000 (17:16 +0000)
ext/ftp/ftp.c

index e2ce52db6fe26ab0d1a28c1b3743013531561c72..fdb1061da89baaafb89708eff47abdecb60dd0fa 100644 (file)
@@ -705,7 +705,9 @@ ftp_get(ftpbuf_t *ftp, php_stream *outstream, const char *path, ftptype_t type,
                }
 
                if (type == FTPTYPE_ASCII) {
+#ifndef PHP_WIN32
                        char *s;
+#endif
                        char *ptr = data->buf;
                        char *e = ptr + rcvd;
                        /* logic depends on the OS EOL