]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
SourceFormat Enforcement
authorSource Maintenance <squidadm@squid-cache.org>
Tue, 28 Feb 2017 18:12:05 +0000 (18:12 +0000)
committerSource Maintenance <squidadm@squid-cache.org>
Tue, 28 Feb 2017 18:12:05 +0000 (18:12 +0000)
tools/squidclient/squidclient.cc

index cfc26568991f4053d56ce0d0ecbde1936b551d46..7b821d848ddeacad96eefdaf36fc941564246dce 100644 (file)
@@ -575,13 +575,13 @@ main(int argc, char *argv[])
 
             } else while ((x = read(put_fd, buf, sizeof(buf))) > 0) {
 
-                x = Transport::Write(buf, x);
+                    x = Transport::Write(buf, x);
 
-                total_bytes += x;
+                    total_bytes += x;
 
-                if (x <= 0)
-                    break;
-            }
+                    if (x <= 0)
+                        break;
+                }
 
             if (x != 0)
                 std::cerr << "ERROR: Cannot send file." << std::endl;