]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 3178: bit more GCC compile errors
authorJiri Skala <jaskalnik@gmail.com>
Tue, 31 May 2011 08:38:05 +0000 (20:38 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Tue, 31 May 2011 08:38:05 +0000 (20:38 +1200)
src/ftp.cc

index 5858e024d3a161ea79c03a9d9c6888c54f663a2e..2b9fb757e7e5782b48e518af8a37b3ff8db52210 100644 (file)
@@ -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 " <<