From: Jiri Skala Date: Tue, 31 May 2011 08:38:05 +0000 (+1200) Subject: Bug 3178: bit more GCC compile errors X-Git-Tag: take08~55^2~158 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=eb9df2d2e8e66f766299e20a2f6cb6839954d69e;p=thirdparty%2Fsquid.git Bug 3178: bit more GCC compile errors --- 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 " <<