From 83469477e70cba8191a4698252fc83804e88322b Mon Sep 17 00:00:00 2001 From: Christopher Jones Date: Mon, 19 Aug 2013 17:48:46 -0700 Subject: [PATCH] =?utf8?q?Remove=20compile=20warnings:=20=20=20warning:=20?= =?utf8?q?variable=20=E2=80=98lastch=E2=80=99=20set=20but=20not=20used=20[?= =?utf8?q?-Wunused-but-set-variable]=20=20=20warning:=20variable=20?= =?utf8?q?=E2=80=98buf=E2=80=99=20set=20but=20not=20used=20[-Wunused-but-s?= =?utf8?q?et-variable]?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- ext/ftp/ftp.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/ext/ftp/ftp.c b/ext/ftp/ftp.c index 0d6704f9d2..2c5bc5d7e3 100644 --- a/ext/ftp/ftp.c +++ b/ext/ftp/ftp.c @@ -790,7 +790,6 @@ int ftp_get(ftpbuf_t *ftp, php_stream *outstream, const char *path, ftptype_t type, long resumepos TSRMLS_DC) { databuf_t *data = NULL; - int lastch; size_t rcvd; char arg[11]; @@ -828,7 +827,6 @@ ftp_get(ftpbuf_t *ftp, php_stream *outstream, const char *path, ftptype_t type, goto bail; } - lastch = 0; while ((rcvd = my_recv(ftp, data->fd, data->buf, FTP_BUFSIZE))) { if (rcvd == -1) { goto bail; @@ -1187,12 +1185,9 @@ ftp_readline(ftpbuf_t *ftp) int ftp_getresp(ftpbuf_t *ftp) { - char *buf; - if (ftp == NULL) { return 0; } - buf = ftp->inbuf; ftp->resp = 0; while (1) { -- 2.40.0