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

index 8a229a17c62accbf999e9633b10ad933166e0c55..208b6e79e740fda4139d401dae5d64e85febdff8 100644 (file)
@@ -838,7 +838,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