From eb9df2d2e8e66f766299e20a2f6cb6839954d69e Mon Sep 17 00:00:00 2001 From: Jiri Skala Date: Tue, 31 May 2011 20:38:05 +1200 Subject: [PATCH] Bug 3178: bit more GCC compile errors --- src/ftp.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ftp.cc b/src/ftp.cc index 5858e024d3..2b9fb757e7 100644 --- a/src/ftp.cc +++ b/src/ftp.cc @@ -2368,7 +2368,6 @@ ftpReadEPSV(FtpStateData* ftpState) { int code = ftpState->ctrl.replycode; char h1, h2, h3, h4; - int n; u_short port; Ip::Address ipa_remote; int fd = ftpState->data.fd; @@ -2436,7 +2435,7 @@ ftpReadEPSV(FtpStateData* ftpState) buf = ftpState->ctrl.last_reply + strcspn(ftpState->ctrl.last_reply, "("); - n = sscanf(buf, "(%c%c%c%hu%c)", &h1, &h2, &h3, &port, &h4); + sscanf(buf, "(%c%c%c%hu%c)", &h1, &h2, &h3, &port, &h4); if (h1 != h2 || h1 != h3 || h1 != h4) { debugs(9, DBG_IMPORTANT, "Invalid EPSV reply from " << -- 2.47.2