]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Source Format Enforcement
authorSquidAdm <noc@lists.squid-cache.org>
Wed, 5 Aug 2020 07:55:54 +0000 (07:55 +0000)
committerAmos Jeffries <yadij@users.noreply.github.com>
Sun, 9 Aug 2020 18:06:11 +0000 (06:06 +1200)
12 files changed:
doc/manuals/language.am
errors/language.am
errors/template.am
src/FwdState.cc
src/MemStore.cc
src/ResolvedPeers.cc
src/comm.cc
src/mem/PoolingAllocator.h
src/peer_select.cc
src/ssl/bio.cc
src/tests/Stub.am
src/tests/testUriScheme.cc

index 7670c88380cdf81c8faff95ef61767bdcf47f273..f03c4cf71b4db9e68dd5f105c7f8b3b5f7d9d846 100644 (file)
@@ -18,4 +18,4 @@ TRANSLATE_LANGUAGES = \
     oc.lang \
     pt.lang \
     ro.lang \
-    ru.lang 
+    ru.lang
index 12b1b2b3b43f0c25f027e2051528e26e648eefbd..802b0f424855841843a235f82befbd46e0298c62 100644 (file)
@@ -51,4 +51,4 @@ TRANSLATE_LANGUAGES = \
     uz.lang \
     vi.lang \
     zh-hans.lang \
-    zh-hant.lang 
+    zh-hant.lang
index 6c12781e6f454dac3d4b9638813f8d941296a536..715c65aa22b910789571a13692f029af39747c47 100644 (file)
@@ -48,4 +48,4 @@ ERROR_TEMPLATES = \
     templates/ERR_UNSUP_REQ \
     templates/ERR_URN_RESOLVE \
     templates/ERR_WRITE_ERROR \
-    templates/ERR_ZERO_SIZE_OBJECT 
+    templates/ERR_ZERO_SIZE_OBJECT
index a992dc547783072b21ac29b5df7d7fd6151652fd..fdbb658654cfe5c20ad0fbc5b71843df3d2ff011 100644 (file)
@@ -835,8 +835,8 @@ FwdState::noteConnection(HappyConnOpener::Answer &answer)
                 !peer->options.originserver && // the "through a proxy" part
                 !peer->secure.encryptTransport) // the "exclude HTTPS proxies" part
             return advanceDestination("establish tunnel through proxy", answer.conn, [this,&answer] {
-                establishTunnelThruProxy(answer.conn);
-            });
+            establishTunnelThruProxy(answer.conn);
+        });
     }
 
     secureConnectionToPeerIfNeeded(answer.conn);
index 7c77002fda420456818a70f27de889ac598bf9c9..f8e49d2170b33c22885e51853f4323542c4f4976 100644 (file)
@@ -1011,7 +1011,7 @@ MemStoreRr::create()
 
     Ipc::Mem::PageStack::Config spaceConfig;
     spaceConfig.poolId = Ipc::Mem::PageStack::IdForMemStoreSpace(),
-    spaceConfig.pageSize = 0; // the pages are stored in Ipc::Mem::Pages
+                spaceConfig.pageSize = 0; // the pages are stored in Ipc::Mem::Pages
     spaceConfig.capacity = entryLimit;
     spaceConfig.createFull = true; // all pages are initially available
     Must(!spaceOwner);
index d8f00cb443590622c86107b336e348386be157c6..32423b94210e631d03b16c900ec60637214d7a11 100644 (file)
@@ -76,8 +76,8 @@ ResolvedPeers::findPrime(const Comm::Connection &currentPeer)
 {
     const auto path = start();
     const auto foundNextOrSpare = path != paths_.end() &&
-        (currentPeer.getPeer() != path->connection->getPeer() || // next peer
-            ConnectionFamily(currentPeer) != ConnectionFamily(*path->connection));
+                                  (currentPeer.getPeer() != path->connection->getPeer() || // next peer
+                                   ConnectionFamily(currentPeer) != ConnectionFamily(*path->connection));
     return makeFinding(path, foundNextOrSpare);
 }
 
@@ -98,7 +98,7 @@ ResolvedPeers::findSpare(const Comm::Connection &currentPeer)
         return false;
     });
     const auto foundNext = path != paths_.end() &&
-        primePeer != path->connection->getPeer();
+                           primePeer != path->connection->getPeer();
     return makeFinding(path, foundNext);
 }
 
@@ -108,7 +108,7 @@ ResolvedPeers::findPeer(const Comm::Connection &currentPeer)
 {
     const auto path = start();
     const auto foundNext = path != paths_.end() &&
-        currentPeer.getPeer() != path->connection->getPeer();
+                           currentPeer.getPeer() != path->connection->getPeer();
     return makeFinding(path, foundNext);
 }
 
index 891e6a5825cc383337c314be689e35bc71901712..3ffc67a98c75bb651981a13af49c70ee6ca988e2 100644 (file)
@@ -1297,8 +1297,8 @@ ClientInfo::writeOrDequeue()
         const auto ccb = COMMIO_FD_WRITECB(head);
         // check that the head descriptor is still relevant
         if (headFde.clientInfo == this &&
-                quotaPeekReserv() == ccb->quotaQueueReserv &&
-                !headFde.closing()) {
+        quotaPeekReserv() == ccb->quotaQueueReserv &&
+        !headFde.closing()) {
 
             // wait for the head descriptor to become ready for writing
             Comm::SetSelect(head, COMM_SELECT_WRITE, Comm::HandleWrite, ccb, 0);
@@ -1678,7 +1678,7 @@ commHalfClosedCheck(void *)
         if (!fd_table[c->fd].halfClosedReader) { // not reading already
             CallBack(fd_table[c->fd].codeContext, [&c] {
                 AsyncCall::Pointer call = commCbCall(5,4, "commHalfClosedReader",
-                                                     CommIoCbPtrFun(&commHalfClosedReader, nullptr));
+                CommIoCbPtrFun(&commHalfClosedReader, nullptr));
                 Comm::Read(c, call);
                 fd_table[c->fd].halfClosedReader = call;
             });
index ff5de1094c0d9dd674ce58236a55cda676519cfc..355aa03f1d24f927964f9537322125ed0f78e8f3 100644 (file)
@@ -35,7 +35,7 @@ public:
 
     template <class OtherValue>
     struct rebind {
-      typedef PoolingAllocator<OtherValue> other;
+        typedef PoolingAllocator<OtherValue> other;
     };
 
     template<typename OtherValue> void destroy(OtherValue *p) { p->~OtherValue(); }
index 49a835ec13f67dfef0e2a56e96cf54d496c90171..d70c0beeeca302086a186e39f972df22f8d8d901 100644 (file)
@@ -171,7 +171,7 @@ PeerSelectorPingMonitor::noteWaitOver()
         CallBack(selector->al, [selector,this] {
             selector->ping.monitorRegistration = npos();
             AsyncCall::Pointer callback = asyncCall(44, 4, "PeerSelector::HandlePingTimeout",
-                cbdataDialer(PeerSelector::HandlePingTimeout, selector));
+            cbdataDialer(PeerSelector::HandlePingTimeout, selector));
             ScheduleCallHere(callback);
         });
         selectors.erase(selectors.begin());
index 15cc9eecd0f7e4e49965c847be9a28e74e7db4af..10b8e838b021b078358a8f23c89b7b01bb509608 100644 (file)
@@ -559,7 +559,7 @@ bool
 Ssl::ServerBio::encryptedCertificates() const
 {
     return parser_.details->tlsSupportedVersion &&
-        Security::Tls1p3orLater(parser_.details->tlsSupportedVersion);
+           Security::Tls1p3orLater(parser_.details->tlsSupportedVersion);
 }
 
 /// initializes BIO table after allocation
index 6a70bd1ca830076ab969e25482f341d1bd4e7e05..ecfdd6d6c36ef6dcae9f79868de5128eb11cd3d3 100644 (file)
@@ -6,87 +6,87 @@
 ## Please see the COPYING and CONTRIBUTORS files for details.
 ##
 
-STUB_SOURCE= tests/STUB.h \
-       tests/stub_access_log.cc \
-       tests/stub_acl.cc \
-       tests/stub_cache_cf.cc \
-       tests/stub_CacheDigest.cc \
-       tests/stub_cache_manager.cc \
-       tests/stub_carp.cc \
-       tests/stub_cbdata.cc \
-       tests/stub_client_db.cc \
-       tests/stub_client_side.cc \
-       tests/stub_client_side_request.cc \
-       tests/stub_CollapsedForwarding.cc \
-       tests/stub_comm.cc \
-       tests/stub_CommIO.cc \
-       tests/stub_debug.cc \
-       tests/stub_DelayId.cc \
-       tests/stub_errorpage.cc \
-       tests/stub_ETag.cc \
-       tests/stub_event.cc \
-       tests/stub_EventLoop.cc \
-       tests/stub_external_acl.cc \
-       tests/stub_fatal.cc \
-       tests/stub_fd.cc \
-       tests/stub_gopher.cc \
-       tests/stub_helper.cc \
-       tests/stub_HelperChildConfig.cc \
-       tests/stub_http.cc \
-       tests/stub_HttpControlMsg.cc \
-       tests/stub_HttpHeader.cc \
-       tests/stub_HttpReply.cc \
-       tests/stub_HttpRequest.cc \
-       tests/stub_HttpUpgradeProtocolAccess.cc \
-       tests/stub_icp.cc \
-       tests/stub_internal.cc \
-       tests/stub_ipcache.cc \
-       tests/stub_ipc.cc \
-       tests/stub_ipc_Forwarder.cc \
-       tests/stub_ipc_TypedMsgHdr.cc \
-       tests/stub_libanyp.cc \
-       tests/stub_libauth_acls.cc \
-       tests/stub_libauth.cc \
-       tests/stub_libcomm.cc \
-       tests/stub_libdiskio.cc \
-       tests/stub_libeui.cc \
-       tests/stub_libformat.cc \
-       tests/stub_libhttp.cc \
-       tests/stub_libicmp.cc \
-       tests/stub_libip.cc \
-       tests/stub_liblog.cc \
-       tests/stub_libmem.cc \
-       tests/stub_libmgr.cc \
-       tests/stub_libsecurity.cc \
-       tests/stub_libsslsquid.cc \
-       tests/stub_libstore.cc \
-       tests/stub_main_cc.cc \
-       tests/stub_MemBuf.cc \
-       tests/stub_mem_node.cc \
-       tests/stub_MemObject.cc \
-       tests/stub_MemStore.cc \
-       tests/stub_mime.cc \
-       tests/stub_neighbors.cc \
-       tests/stub_pconn.cc \
-       tests/stub_Port.cc \
-       tests/stub_redirect.cc \
-       tests/stub_SBuf.cc \
-       tests/stub_SBufDetailedStats.cc \
-       tests/stub_stat.cc \
-       tests/stub_StatHist.cc \
-       tests/stub_stmem.cc \
-       tests/stub_store.cc \
-       tests/stub_store_client.cc \
-       tests/stub_store_digest.cc \
-       tests/stub_StoreMeta.cc \
-       tests/stub_store_rebuild.cc \
-       tests/stub_store_stats.cc \
-       tests/stub_store_swapout.cc \
-       tests/stub_SwapDir.cc \
-       tests/stub_time.cc \
-       tests/stub_tools.cc \
-       tests/stub_tunnel.cc \
-       tests/stub_UdsOp.cc \
-       tests/stub_wccp2.cc \
-       tests/stub_whois.cc \
-       tests/stub_wordlist.cc 
+STUB_SOURCE = \
+    tests/stub_access_log.cc \
+    tests/stub_acl.cc \
+    tests/stub_cache_cf.cc \
+    tests/stub_CacheDigest.cc \
+    tests/stub_cache_manager.cc \
+    tests/stub_carp.cc \
+    tests/stub_cbdata.cc \
+    tests/stub_client_db.cc \
+    tests/stub_client_side.cc \
+    tests/stub_client_side_request.cc \
+    tests/stub_CollapsedForwarding.cc \
+    tests/stub_comm.cc \
+    tests/stub_CommIO.cc \
+    tests/stub_debug.cc \
+    tests/stub_DelayId.cc \
+    tests/stub_errorpage.cc \
+    tests/stub_ETag.cc \
+    tests/stub_event.cc \
+    tests/stub_EventLoop.cc \
+    tests/stub_external_acl.cc \
+    tests/stub_fatal.cc \
+    tests/stub_fd.cc \
+    tests/stub_gopher.cc \
+    tests/stub_helper.cc \
+    tests/stub_HelperChildConfig.cc \
+    tests/stub_http.cc \
+    tests/stub_HttpControlMsg.cc \
+    tests/stub_HttpHeader.cc \
+    tests/stub_HttpReply.cc \
+    tests/stub_HttpRequest.cc \
+    tests/stub_HttpUpgradeProtocolAccess.cc \
+    tests/stub_icp.cc \
+    tests/stub_internal.cc \
+    tests/stub_ipcache.cc \
+    tests/stub_ipc.cc \
+    tests/stub_ipc_Forwarder.cc \
+    tests/stub_ipc_TypedMsgHdr.cc \
+    tests/stub_libanyp.cc \
+    tests/stub_libauth_acls.cc \
+    tests/stub_libauth.cc \
+    tests/stub_libcomm.cc \
+    tests/stub_libdiskio.cc \
+    tests/stub_libeui.cc \
+    tests/stub_libformat.cc \
+    tests/stub_libhttp.cc \
+    tests/stub_libicmp.cc \
+    tests/stub_libip.cc \
+    tests/stub_liblog.cc \
+    tests/stub_libmem.cc \
+    tests/stub_libmgr.cc \
+    tests/stub_libsecurity.cc \
+    tests/stub_libsslsquid.cc \
+    tests/stub_libstore.cc \
+    tests/stub_main_cc.cc \
+    tests/stub_MemBuf.cc \
+    tests/stub_mem_node.cc \
+    tests/stub_MemObject.cc \
+    tests/stub_MemStore.cc \
+    tests/stub_mime.cc \
+    tests/stub_neighbors.cc \
+    tests/stub_pconn.cc \
+    tests/stub_Port.cc \
+    tests/stub_redirect.cc \
+    tests/stub_SBuf.cc \
+    tests/stub_SBufDetailedStats.cc \
+    tests/stub_stat.cc \
+    tests/stub_StatHist.cc \
+    tests/stub_stmem.cc \
+    tests/stub_store.cc \
+    tests/stub_store_client.cc \
+    tests/stub_store_digest.cc \
+    tests/stub_StoreMeta.cc \
+    tests/stub_store_rebuild.cc \
+    tests/stub_store_stats.cc \
+    tests/stub_store_swapout.cc \
+    tests/stub_SwapDir.cc \
+    tests/stub_time.cc \
+    tests/stub_tools.cc \
+    tests/stub_tunnel.cc \
+    tests/stub_UdsOp.cc \
+    tests/stub_wccp2.cc \
+    tests/stub_whois.cc \
+    tests/stub_wordlist.cc
index b58b6505b28f3752707a970efc84789ce0b9900d..7bf248facbe39f6f7f2a09c0499f72ce5fb5fb9d 100644 (file)
@@ -161,3 +161,4 @@ testUriScheme::setUp()
     Mem::Init();
     AnyP::UriScheme::Init();
 }
+