]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Cleanup a lot of whitespace crap, mostl of which introduced by astyle
authorHenrik Nordstrom <henrik@henriknordstrom.net>
Sun, 16 Mar 2008 21:48:45 +0000 (22:48 +0100)
committerHenrik Nordstrom <henrik@henriknordstrom.net>
Sun, 16 Mar 2008 21:48:45 +0000 (22:48 +0100)
90 files changed:
include/List.h
src/ACLBrowser.cc
src/ACLMaxUserIP.h
src/ACLMethod.cc
src/ACLMethodData.cc
src/ACLMyPort.cc
src/ACLProtocol.cc
src/ACLProtocolData.cc
src/ACLReferer.cc
src/ACLRegexData.cc
src/ACLReplyMIMEType.cc
src/ACLRequestMIMEType.cc
src/ACLSslError.cc
src/ACLSslErrorData.cc
src/ACLStrategised.cc
src/ACLStrategy.h
src/ACLTimeData.cc
src/ACLUserData.h
src/AccessLogEntry.h
src/AuthUser.cci
src/AuthUser.h
src/CacheManager.h
src/DelayUser.cc
src/DiskIO/DiskDaemon/DiskdFile.cc
src/ESI.cc
src/ESIAttempt.h
src/ESIContext.h
src/ESIElement.h
src/ESIExcept.h
src/ESIInclude.h
src/ESILiteral.h
src/ESISequence.h
src/ESIVarState.h
src/EventLoop.cc
src/HttpHdrContRange.h
src/HttpHeaderTools.cc
src/ICMPv4.cc
src/MemBuf.h
src/NullDelayId.h
src/PeerDigest.h
src/ProtoPort.h
src/StoreClient.h
src/StoreHashIndex.h
src/StoreIOBuffer.h
src/StoreIOState.h
src/SwapDir.h
src/access_log.cc
src/acl_noncore.cc
src/asn.cc
src/auth/digest/auth_digest.cc
src/auth/digest/auth_digest.h
src/cache_cf.cc
src/cache_manager.cc
src/cbdata.cc
src/client_side.cc
src/client_side_reply.cc
src/client_side_request.cc
src/client_side_request.h
src/comm_select.cc
src/comm_select_win32.cc
src/debug.cc
src/errorpage.h
src/forward.cc
src/forward.h
src/fqdncache.cc
src/fs/coss/store_coss.h
src/fs/coss/store_dir_coss.cc
src/fs/ufs/store_dir_ufs.cc
src/fs/ufs/ufscommon.h
src/ftp.cc
src/gopher.cc
src/helper.h
src/htcp.cc
src/ident.cc
src/ipcache.cc
src/mem_node.h
src/mime.cc
src/peer_digest.cc
src/repl/heap/store_repl_heap.cc
src/stat.cc
src/store_client.cc
src/store_swapout.cc
src/structs.h
src/tests/testAuth.cc
src/tests/testEvent.cc
src/tools.cc
src/urn.cc
src/wccp2.cc
src/whois.cc
tools/cachemgr.cc

index eb90355f89010d7606c4e24147d6452a4977da55..2143edbd3d329d5dd976cfc22f304b86cb67ffd5 100644 (file)
@@ -187,9 +187,7 @@ ListContainer<C>::push_back (C const &element)
     if (head) {
         List<C> *tempNode = NULL;
 
-        for (tempNode = head; tempNode->next; tempNode = tempNode->next)
-
-            ;
+        for (tempNode = head; tempNode->next; tempNode = tempNode->next);
         tempNode->next = node;
     } else
         head = node;
index d682bc74146abe5fbdcee35dcb7e458883e56d0f..4ce7d5ca5e4d516014d993a9a6f9b6b0f8780883 100644 (file)
 
 /* explicit template instantiation required for some systems */
 
-template class ACLStrategised<char const *>
-
-;
-template class ACLRequestHeaderStrategy<HDR_USER_AGENT>
-
-;
+template class ACLStrategised<char const *>;
+template class ACLRequestHeaderStrategy<HDR_USER_AGENT>;
 
 ACL::Prototype ACLBrowser::RegistryProtoype(&ACLBrowser::RegistryEntry_, "browser");
 
index 3c518f586ccd9315c9d9f3da2e0293fb762c6f04..d83ec81331c58ad6e99cdd6695320d84f8908d1e 100644 (file)
@@ -75,11 +75,8 @@ private:
     {
         Flags() : strict(0){}
 
-unsigned int strict:
-        1;
-    }
-
-    flags;
+        unsigned int strict:1;
+    } flags;
 };
 
 MEMPROXY_CLASS_INLINE(ACLMaxUserIP)          /**DOCS_NOSEMI*/
index d046cac055635363505f6d04fd5bb989a78ddac7..7b1e1afc6d107e6723f3ddb74e2ed5583bfad3b7 100644 (file)
@@ -41,9 +41,7 @@
 
 /* explicit template instantiation required for some systems */
 
-template class ACLStrategised<HttpRequestMethod>
-
-;
+template class ACLStrategised<HttpRequestMethod>;
 
 ACL::Prototype ACLMethod::RegistryProtoype(&ACLMethod::RegistryEntry_, "method");
 
index e69965e1cf78e475ce2702db1a95e3fe5c9dbd14..c7dae825970da3f9869429368c5ebf64721314d6 100644 (file)
@@ -88,9 +88,7 @@ ACLMethodData::parse()
     List<HttpRequestMethod> **Tail;
     char *t = NULL;
 
-    for (Tail = &values; *Tail; Tail = &((*Tail)->next))
-
-        ;
+    for (Tail = &values; *Tail; Tail = &((*Tail)->next));
     while ((t = strtokFile())) {
         List<HttpRequestMethod> *q = new List<HttpRequestMethod> (HttpRequestMethod(t, NULL));
         *(Tail) = q;
index 99e42a214759f158603608e8c1d5baf42a62ac90..87c6da0395533749c523c999f8a53a6f5271fc72 100644 (file)
@@ -40,9 +40,7 @@
 
 /* explicit template instantiation required for some systems */
 
-template class ACLStrategised<int>
-
-;
+template class ACLStrategised<int>;
 
 ACL::Prototype ACLMyPort::RegistryProtoype(&ACLMyPort::RegistryEntry_, "myport");
 
index 1690fc45c5f0bb5813de6d2f63353c727acc3770..c5e24f21d0fffddf6559af60db6eef54cfa0656f 100644 (file)
@@ -41,9 +41,7 @@
 
 /* explicit template instantiation required for some systems */
 
-template class ACLStrategised<protocol_t>
-
-;
+template class ACLStrategised<protocol_t>;
 
 ACL::Prototype ACLProtocol::RegistryProtoype(&ACLProtocol::RegistryEntry_, "proto");
 
@@ -53,7 +51,6 @@ int
 ACLProtocolStrategy::match (ACLData<MatchType> * &data, ACLChecklist *checklist)
 {
     return data->match (checklist->request->protocol);
-    ;
 }
 
 ACLProtocolStrategy *
index c4293a7b37cefafa8d77236d6a3c66b44b819702..a17ac99a4f03e341d7c50ef727104c58e67a2ca1 100644 (file)
@@ -86,9 +86,7 @@ ACLProtocolData::parse()
     List<protocol_t> **Tail;
     char *t = NULL;
 
-    for (Tail = &values; *Tail; Tail = &((*Tail)->next))
-
-        ;
+    for (Tail = &values; *Tail; Tail = &((*Tail)->next));
     while ((t = strtokFile())) {
         List<protocol_t> *q = new List<protocol_t> (urlParseProtocol(t));
         *(Tail) = q;
index e56783c5e618c7ce9f3b4d6e00e4e4ffcc3624ea..ad722364956ae4173d75bc263ce5d9b0d0f2ac25 100644 (file)
@@ -41,9 +41,7 @@
 
 /* explicit template instantiation required for some systems */
 
-template class ACLRequestHeaderStrategy<HDR_REFERER>
-
-;
+template class ACLRequestHeaderStrategy<HDR_REFERER>;
 
 ACL::Prototype ACLReferer::RegistryProtoype(&ACLReferer::RegistryEntry_, "referer_regex");
 
index 28d3021ce5fbb3de0b8bcd2b1c4d6881044b6e40..302c5d8916d77e2f461dd5fa4fac5b9261d3c30d 100644 (file)
@@ -125,9 +125,7 @@ aclParseRegexList(relist **curlist)
     int errcode;
     int flags = REG_EXTENDED | REG_NOSUB;
 
-    for (Tail = (relist **)curlist; *Tail; Tail = &((*Tail)->next))
-
-        ;
+    for (Tail = (relist **)curlist; *Tail; Tail = &((*Tail)->next));
     while ((t = ConfigParser::strtokFile())) {
         if (strcmp(t, "-i") == 0) {
             flags |= REG_ICASE;
index 7a2fecd5b8853f01ca7f6fb69cfebac8cffa2402..bea60c5582db9806c5d7871f2b9bbb45478d949b 100644 (file)
@@ -41,9 +41,7 @@
 
 /* explicit template instantiation required for some systems */
 
-template class ACLReplyHeaderStrategy<HDR_CONTENT_TYPE>
-
-;
+template class ACLReplyHeaderStrategy<HDR_CONTENT_TYPE>;
 
 ACL::Prototype ACLReplyMIMEType::RegistryProtoype(&ACLReplyMIMEType::RegistryEntry_, "rep_mime_type");
 
index 06befa18f7721640786b2051d2315b799e6ef9c0..77b336f69cdb6dc5eda7f7fdf2842b739d07bdad 100644 (file)
@@ -41,9 +41,7 @@
 
 /* explicit template instantiation required for some systems */
 
-template class ACLRequestHeaderStrategy<HDR_CONTENT_TYPE>
-
-;
+template class ACLRequestHeaderStrategy<HDR_CONTENT_TYPE>;
 
 ACL::Prototype ACLRequestMIMEType::RegistryProtoype(&ACLRequestMIMEType::RegistryEntry_, "req_mime_type");
 
index 1f1e23534a730697481a4e31d3ea36b07d682c61..1ac5caa3c5872aca44b6d4c8bb62518b66569918 100644 (file)
@@ -10,9 +10,7 @@
 
 /* explicit template instantiation required for some systems */
 
-template class ACLStrategised<int>
-
-;
+template class ACLStrategised<int>;
 
 ACL::Prototype ACLSslError::RegistryProtoype(&ACLSslError::RegistryEntry_, "ssl_error");
 
index 0b3a2ddd4b59b96f61935012f5705796a9743cc4..39a5035607e9f2a397feaf285a016199dad1c90d 100644 (file)
@@ -51,9 +51,7 @@ ACLSslErrorData::parse()
     List<ssl_error_t> **Tail;
     char *t = NULL;
 
-    for (Tail = &values; *Tail; Tail = &((*Tail)->next))
-
-        ;
+    for (Tail = &values; *Tail; Tail = &((*Tail)->next));
     while ((t = strtokFile())) {
         List<ssl_error_t> *q = new List<ssl_error_t>(sslParseErrorString(t));
         *(Tail) = q;
index 5d214ac2c594ef7e3e1886f012d0085444d36bd8..b867b7cbfebfc18cf392e9adac8c9c6c680944ee 100644 (file)
@@ -49,6 +49,4 @@
  
 /* explicit template instantiation required for some systems */
 
-template class ACLStrategised<HttpHeader*>
-
-;
+template class ACLStrategised<HttpHeader*>;
index b849559bd366f86cd0ae09ed538b55b8d13b70e1..573f7c513bdc05fd2a2c41cf7a5f93a01cfb55bb 100644 (file)
@@ -54,8 +54,7 @@ public:
 
     virtual bool valid() const {return true;}
 
-    virtual ~ACLStrategy(){}}
-
-;
+    virtual ~ACLStrategy(){}
+};
 
 #endif /* SQUID_ACLSTRATEGY_H */
index b8b853d99e582cbebc8cd3fa0bba371b79d34bec..d28b6e5ad69655c633a4254fcfb1746c443d0b3f 100644 (file)
@@ -129,9 +129,7 @@ ACLTimeData::parse()
     ACLTimeData **Tail;
     long weekbits = 0;
 
-    for (Tail = &next; *Tail; Tail = &((*Tail)->next))
-
-        ;
+    for (Tail = &next; *Tail; Tail = &((*Tail)->next));
     ACLTimeData *q = NULL;
 
     int h1, m1, h2, m2;
index bf073541c33f13eaae5c596083c3c96d029e0886..aa9a073aa0f4db8775af8d6c82de2620d4fdabf5 100644 (file)
@@ -56,15 +56,9 @@ public:
 
     struct
     {
-
-unsigned int case_insensitive:
-        1;
-
-unsigned int required:
-        1;
-    }
-
-    flags;
+        unsigned int case_insensitive:1;
+        unsigned int required:1;
+    } flags;
 };
 
 MEMPROXY_CLASS_INLINE(ACLUserData)          /**DOCS_NOSEMI*/
index f211d6de367025fc6127c6014e728d9d7e9cca4e..b77d2ffe7887f8d648b07c8c660686df11221b40 100644 (file)
@@ -93,8 +93,7 @@ public:
 #if USE_SSL
                 ,ssluser(NULL)
 #endif
-        {
-            ;
+        {;
         }
 
         IPAddress caddr;
index 23da82652decca80f44b4ddb893abcba2dd3babe..c0ad1dd7070f035e04741e6dc711cdbb48d4b66d 100644 (file)
@@ -52,9 +52,7 @@ AuthUser::addRequest(AuthUserRequest *request)
 {
     /* lock for the request link */
 
-    lock()
-
-        ;
+    lock();
     dlink_node *node = dlinkNodeNew();
 
     dlinkAdd(request, node, &requests);
index 82c668873f0ec958d2f30466e14a1d5748ad2b02..df5a21beadb722564b176845588d5564e3d3e975 100644 (file)
@@ -84,9 +84,7 @@ public:
     void addIp(IPAddress);
     _SQUID_INLINE_ void addRequest(AuthUserRequest *);
 
-    void lock()
-
-        ;
+    void lock();
     void unlock();
 
     void addToNameCache();
index 542d01dca37ee4ded6071fabd5b0724bcc07d153..efc687c08a4275a1b25966cae22ff36ebad74280 100644 (file)
@@ -58,15 +58,9 @@ public:
 
     struct
     {
-
-unsigned int pw_req:
-        1;
-
-unsigned int atomic:
-        1;
-    }
-
-    flags;
+        unsigned int pw_req:1;
+        unsigned int atomic:1;
+    } flags;
 
     CacheManagerAction *next;
 };
index 4e6a101536347ea9dce8b00e336210c5155275f6..e0840500ce26669d194a500df7cb4c51df9196d7 100644 (file)
@@ -186,9 +186,7 @@ DelayUserBucket::DelayUserBucket(AuthUser *aUser) : authUser (aUser)
 {
     debugs(77, 3, "DelayUserBucket::DelayUserBucket");
 
-    authUser->lock()
-
-    ;
+    authUser->lock();
 }
 
 DelayUserBucket::~DelayUserBucket()
index 22636d5591939908e0b0549d14e3d24ce0132df7..e5e11d6cb29b6c34d37e310676b77f80ea2f2123 100644 (file)
@@ -328,8 +328,7 @@ DiskdFile::write(WriteRequest *aRequest)
                      aRequest);
 
     if (x < 0) {
-        ioCompleted()
-        ;
+        ioCompleted();
         errorOccured = true;
         debugs(79, 1, "storeDiskdSend WRITE: " << xstrerror());
         //        IO->shm.put (shm_offset);
index 49d12d3874216e97d5554d7afcdfe2f04be9a755..145937a92b6666c3bfd91a6b5390eff1ab018eab 100644 (file)
@@ -170,18 +170,10 @@ struct esiTry : public ESIElement
 
     struct
     {
-
-int attemptok:
-        1; /* the attempt branch process correctly */
-
-int exceptok:
-        1; /* likewise */
-
-int attemptfailed:
-        1; /* The attempt branch failed */
-
-int exceptfailed:
-        1; /* the except branch failed */
+        int attemptok:1; /* the attempt branch process correctly */
+        int exceptok:1; /* likewise */
+        int attemptfailed:1; /* The attempt branch failed */
+        int exceptfailed:1; /* the except branch failed */
     }
 
     flags;
@@ -264,9 +256,8 @@ struct esiOtherwise : public esiSequence
 {
     //    void *operator new (size_t byteCount);
     //    void operator delete (void *address);
-    esiOtherwise(esiTreeParentPtr aParent) : esiSequence (aParent) {}}
-
-;
+    esiOtherwise(esiTreeParentPtr aParent) : esiSequence (aParent) {}
+};
 
 CBDATA_CLASS_INIT(ESIContext);
 
index 2f6aaf26aa31b7746791cb32b15d7e4f44db96e4..82327a36a8866c57b4b329768538e1713054817a 100644 (file)
@@ -46,9 +46,7 @@ struct esiAttempt : public esiSequence
 {
     //    void *operator new (size_t byteCount);
     //    void operator delete (void *address);
-    esiAttempt(esiTreeParentPtr aParent) : esiSequence (aParent) {}}
-
-;
-
+    esiAttempt(esiTreeParentPtr aParent) : esiSequence (aParent) {}
+};
 
 #endif /* SQUID_ESIATTEMPT_H */
index 909d95b3b8729de493d278ead39eb6ff4f336d14..596a73177a1caf29f2b2661eea49889439cde865 100644 (file)
@@ -85,38 +85,22 @@ public:
 
     struct
     {
-
-int passthrough:
-        1;
-
-int oktosend:
-        1;
-
-int finished:
-        1;
+        int passthrough:1;
+        int oktosend:1;
+        int finished:1;
 
         /* an error has occured, send full body replies
          * regardless. Note that we don't fail midstream
          * because we buffer until we can not fail
          */
+        int error:1;
 
-int error:
-        1;
-
-int finishedtemplate:
-        1; /* we've read the entire template */
-
-int clientwantsdata:
-        1; /* we need to satisfy a read request */
+        int finishedtemplate:1; /* we've read the entire template */
+        int clientwantsdata:1; /* we need to satisfy a read request */
+        int kicked:1; /* note on reentering the kick routine */
+        int detached:1; /* our downstream has detached */
+    } flags;
 
-int kicked:
-        1; /* note on reentering the kick routine */
-
-int detached:
-        1; /* our downstream has detached */
-    }
-
-    flags;
     err_type errorpage; /* if we error what page to use */
     http_status errorstatus; /* if we error, what code to return */
     char *errormessage; /* error to pass to error page */
@@ -149,9 +133,7 @@ int detached:
         ParserState();
         void freeResources();
         void popAll();
-
-    int parsing:
-        1; /* libexpat is not reentrant on the same context */
+        int parsing:1; /* libexpat is not reentrant on the same context */
 
     private:
         bool inited_;
index 47cd226270de554827d98c6317f5bbc776dc5169..36bfbdbe5b8512313a7f494d4d37fba4d775a855 100644 (file)
@@ -55,9 +55,8 @@ struct esiTreeParent : public RefCountable
 
     virtual void fail(ESIElement * source, char const *reason = NULL) {}
 
-    virtual ~esiTreeParent(){}}
-
-;
+    virtual ~esiTreeParent(){}
+};
 
 typedef RefCount<esiTreeParent> esiTreeParentPtr;
 
index f923425028fc80620754858f065f10ce51f5fd53..f4272f4529dac6ee08a76f91ee6b9d137832e3fb 100644 (file)
@@ -48,8 +48,7 @@ class esiExcept : public esiSequence
 public:
     //    void *operator new (size_t byteCount);
     //    void operator delete (void *address);
-    esiExcept(esiTreeParentPtr aParent) : esiSequence (aParent) {}}
-
-;
+    esiExcept(esiTreeParentPtr aParent) : esiSequence (aParent) {}
+};
 
 #endif /* SQUID_ESIEXCEPT_H */
index e23d320c0a9e60b204d0597177eb6ea139c886a9..75b066652002d34916bc358d233eb3cf9bfc347d 100644 (file)
@@ -81,18 +81,10 @@ public:
 
     struct
     {
-
-int onerrorcontinue:
-        1; /* on error return zero data */
-
-int failed:
-        1; /* Failed to process completely */
-
-int finished:
-        1; /* Finished getting subrequest data */
-    }
-
-    flags;
+        int onerrorcontinue:1; /* on error return zero data */
+        int failed:1; /* Failed to process completely */
+        int finished:1; /* Finished getting subrequest data */
+    } flags;
     ESIStreamContext::Pointer src;
     ESIStreamContext::Pointer alt;
     ESISegment::Pointer srccontent;
index f91d141b7d43e235859b8af3fb95e23a81eb56b0..1f493e153f6bf0894eeaa00375843f657065a5b7 100644 (file)
@@ -59,12 +59,9 @@ struct esiLiteral : public ESIElement
 
     struct
     {
+        int donevars:1;
+    } flags;
 
-int donevars:
-        1;
-    }
-
-    flags;
     ESIVarState *varState;
     void finish();
 
index 50e1a01480a9d983639b0ef2c91d5340541ffe07..e3150148a6ee6ccccd3f93c265582a1b39e4d4b1 100644 (file)
@@ -68,12 +68,8 @@ public:
 
     struct
     {
-
-int dovars:
-        1; /* for esiVar */
-    }
-
-    flags;
+        int dovars:1; /* for esiVar */
+    } flags;
     void finish();
 
 protected:
index f33fbfb3d30703dc815353e7b850f577fd559405..00685f8ca3edf11e6d678938a54672b88da60519 100644 (file)
@@ -88,24 +88,12 @@ private:
 
     struct
     {
-
-int language:
-        1;
-
-int cookie:
-        1;
-
-int host:
-        1;
-
-int referer:
-        1;
-
-int useragent:
-        1;
-    }
-
-    flags;
+        int language:1;
+        int cookie:1;
+        int host:1;
+        int referer:1;
+        int useragent:1;
+    } flags;
 
 public:
 
index cc2af543109daf8c4d8625e9cca3968a53b0ad49..e639bda062dc9341859a8f6e23cd14912ee5610f 100644 (file)
@@ -92,9 +92,7 @@ EventLoop::run()
 {
     prepareToRun();
 
-    while (!runOnce())
-
-        ;
+    while (!runOnce());
 }
 
 bool
index a49f6e9ce849342372ee6c44ea77e722bb9816a9..9ee9e00b24949c188bb4f165e88554864eeb6b09 100644 (file)
@@ -56,7 +56,6 @@ SQUIDCEXTERN HttpHdrContRange *httpHdrContRangeDup(const HttpHdrContRange * cran
 SQUIDCEXTERN void httpHdrContRangePackInto(const HttpHdrContRange * crange, Packer * p);
 /* inits with given spec */
 SQUIDCEXTERN void httpHdrContRangeSet(HttpHdrContRange *, HttpHdrRangeSpec, int64_t);
-;
 SQUIDCEXTERN void httpHeaderAddContRange(HttpHeader *, HttpHdrRangeSpec, int64_t);
 
 
index 9a79afb4315779e2a9417f83ad81836e3aadc50f..919767a229b46b81009f9e8636a4854551ebd1d4 100644 (file)
@@ -248,7 +248,7 @@ strListGetItem(const String * str, char del, const char **item, int *ilen, const
     size_t len;
     static char delim[2][3] = {
                                   { '"', '?', 0},
-                                  { '"', '\\', 0}};
+                                  { '"', '\\', 0} };
     int quoted = 0;
     assert(str && item && pos);
 
index 76e538013ee663e9b9c8a0d94c9f8b002912756e..221d32def1693163c5fcf2e249e34eae2ba09f48 100644 (file)
@@ -65,8 +65,7 @@ const char *icmpPktStr[] =
     };
 
 ICMPv4::ICMPv4() : ICMP()
-{
-    ;
+{;
 }
 
 ICMPv4::~ICMPv4()
index 3e3b0a46ba23562c2067e22745c4eeeb07866d8f..10ab7e0dba5a0aa32bc5cd9d5f17ba86a47a1863 100644 (file)
@@ -171,13 +171,11 @@ public:
      */
     mb_size_t capacity;        
 
-unsigned stolen:
-    1;         /* the buffer has been stolen for use by someone else */
+    unsigned stolen:1;         /* the buffer has been stolen for use by someone else */
 
 #if 0
 
-unsigned valid:
-    1;         /* to be used for debugging only! */
+    unsigned valid:1;          /* to be used for debugging only! */
 #endif
 };
 
index 7287826788fdccb3802e5d65a058c6bcbf62d4bb..c32114bb72f5b64e59d58d51bf166b0422ea3c92 100644 (file)
@@ -54,8 +54,7 @@ public:
     void operator delete (void *);
     virtual int bytesWanted (int minimum, int maximum) const {return max(minimum,maximum);}
 
-    virtual void bytesIn(int qty) {}}
-
-;
+    virtual void bytesIn(int qty) {}
+};
 #endif
 #endif /* NULLDELAYID_H */
index dd8b886ef837683db6a189dd0438d1f141887a56..379d185f8b1ed725d298ae22a04b45f9608e8127 100644 (file)
@@ -103,17 +103,10 @@ public:
     struct
     {
 
-unsigned int needed:
-        1;     /* there were requests for this digest */
-
-unsigned int usable:
-        1;     /* can be used for lookups */
-
-unsigned int requested:
-        1;     /* in process of receiving [fresh] digest */
-    }
-
-    flags;
+        unsigned int needed:1; /* there were requests for this digest */
+        unsigned int usable:1; /* can be used for lookups */
+        unsigned int requested:1;      /* in process of receiving [fresh] digest */
+    } flags;
 
     struct
     {
@@ -126,9 +119,7 @@ unsigned int requested:
         time_t req_delay;      /* last request response time */
         time_t received;       /* received the current copy of a digest */
         time_t disabled;       /* disabled for good */
-    }
-
-    times;
+    } times;
 
     struct
     {
@@ -139,12 +130,8 @@ unsigned int requested:
         {
             int msgs;
             kb_t kbytes;
-        }
-
-        sent, recv;
-    }
-
-    stats;
+        } sent, recv;
+    } stats;
 
 private:
     CBDATA_CLASS(PeerDigest);
index 8873dbea6e9d5b57abc6dbf466fa62b97765c6ea..ff696cf970b5d829ce6bb8bad21418c26ada7b9e 100644 (file)
@@ -21,23 +21,18 @@ struct http_port_list
     char *name;                /* visible name */
     char *defaultsite;         /* default web site */
 
-unsigned int transparent:
-    1; /* transparent proxy */
+    unsigned int transparent:1; /* transparent proxy */
 
-unsigned int accel:
-    1; /* HTTP accelerator */
+    unsigned int accel:1; /* HTTP accelerator */
 
-unsigned int vhost:
-    1; /* uses host header */
+    unsigned int vhost:1; /* uses host header */
 
-unsigned int sslBump:
-    1; /* intercepts CONNECT requests */
+    unsigned int sslBump:1; /* intercepts CONNECT requests */
 
     int vport;                 /* virtual port support, -1 for dynamic, >0 static*/
     int disable_pmtu_discovery;
 #if LINUX_TPROXY
-unsigned int tproxy:
-    1; /* spoof client ip using tproxy */
+    unsigned int tproxy:1; /* spoof client ip using tproxy */
 #endif
 
     struct {
index f202dbfa7eff2bf26aa43b31351519e95ff29dbf..3389313508640321063f67787dc9ebbb66ebe865 100644 (file)
@@ -84,18 +84,10 @@ public:
 
     struct
     {
-
-unsigned int disk_io_pending:
-        1;
-
-unsigned int store_copying:
-        1;
-
-unsigned int copy_event_pending:
-        1;
-    }
-
-    flags;
+        unsigned int disk_io_pending:1;
+        unsigned int store_copying:1;
+        unsigned int copy_event_pending:1;
+    } flags;
 #if DELAY_POOLS
 
     DelayId delayId;
index a17778d544fded6c56fb0e824b89a37dc208a711..8a681481386d4fc4e873744f08a6d3f2918ae8eb 100644 (file)
@@ -85,9 +85,7 @@ private:
 };
 
 class StoreHashIndexEntry : public StoreEntry
-{}
-
-;
+{};
 
 class StoreSearchHashIndex : public StoreSearch
 {
index 601909497b240a5418b18064c3f4dad84d43dd62..513e6197360c4e485087cd83c6c602ff6ca5e119 100644 (file)
@@ -74,12 +74,8 @@ public:
 
     struct
     {
-
-unsigned error:
-        1;
-    }
-
-    flags;
+        unsigned error:1;
+    } flags;
     size_t length;
     int64_t offset;
     char *data;
index 2f5f9f1c023fae53773963b436510cdc28079c9a..ed01ce6ecb74a7d1ec1aa07423be350be2a1ef3f 100644 (file)
@@ -105,9 +105,7 @@ public:
 
     struct
     {
-
-unsigned int closing:
-        1;     /* debugging aid */
+        unsigned int closing:1;        /* debugging aid */
     }
 
     flags;
index 07683726798323a2f1b3870035dfd03b325c16f7..23af542b5c2ce9522b8fa01c35c7a7c2821a6e53 100644 (file)
@@ -172,12 +172,8 @@ public:
     struct Flags
     {
         Flags() : selected(0), read_only(0){}
-
-unsigned int selected:
-        1;
-
-unsigned int read_only:
-        1;
+        unsigned int selected:1;
+        unsigned int read_only:1;
     }
 
     flags;
index 5382d4f5e320a5ea8f4f10a7673716dde76151d7..4d381260fa4cdaa0f73c1b8b59636187c02e0720 100644 (file)
@@ -413,17 +413,10 @@ struct _logformat_token
     } data;
     unsigned char width;
     unsigned char precision;
-
     enum log_quote quote;
-
-unsigned int left:
-    1;
-
-unsigned int space:
-    1;
-
-unsigned int zero:
-    1;
+    unsigned int left:1;
+    unsigned int space:1;
+    unsigned int zero:1;
     int divisor;
     logformat_token *next;     /* todo: move from linked list to array */
 };
index abd6fac91cfa6a3c0c5ad194aa36a5bbaea97e27..a66ef4a7fad27cd655c2387d6aa5bc259aa239e3 100644 (file)
@@ -192,9 +192,7 @@ aclParseAccessLine(ConfigParser &parser, acl_access ** head)
     A->cfgline = xstrdup(config_input_line);
     /* Append to the end of this list */
 
-    for (B = *head, T = head; B; T = &B->next, B = B->next)
-
-        ;
+    for (B = *head, T = head; B; T = &B->next, B = B->next);
     *T = A;
 
     /* We lock _acl_access structures in ACLChecklist::check() */
index a7565b38b346f51fad539ffeaa3237ee10a7061c..ce9f739adfb1723f93d348ab225ed708c6e36a59 100644 (file)
@@ -243,9 +243,7 @@ asnCacheStart(int as)
         FwdState::fwdStart(-1, e, asState->request);
     } else {
 
-        e->lock()
-
-        ;
+        e->lock();
         asState->sc = storeClientListAdd(e, asState);
     }
 
@@ -440,8 +438,7 @@ asnAddNet(char *as_string, int as_number)
         } else {
             debugs(53, 3, "asnAddNet: Warning: Found a network with multiple AS numbers!");
 
-            for (Tail = &asinfo->as_number; *Tail; Tail = &(*Tail)->next)
-                ;
+            for (Tail = &asinfo->as_number; *Tail; Tail = &(*Tail)->next);
             q = new List<int> (as_number);
 
             *(Tail) = q;
@@ -579,9 +576,7 @@ ACLASN::parse()
     List<int> *q = NULL;
     char *t = NULL;
 
-    for (Tail = curlist; *Tail; Tail = &((*Tail)->next))
-
-        ;
+    for (Tail = curlist; *Tail; Tail = &((*Tail)->next));
     while ((t = strtokFile())) {
         q = new List<int> (atoi(t));
         *(Tail) = q;
@@ -600,9 +595,7 @@ ACLASN::clone() const
 
 /* explicit template instantiation required for some systems */
 
-template class ACLStrategised<IPAddress>
-
-;
+template class ACLStrategised<IPAddress>;
 
 ACL::Prototype ACLASN::SourceRegistryProtoype(&ACLASN::SourceRegistryEntry_, "src_as");
 
index 367109612e8baec0a9f3c74b59681595b8e289ff..f98897a35a40e91b7eec76c7b43d36d332819d86 100644 (file)
@@ -1392,9 +1392,7 @@ AuthDigestUserRequest::authUser(auth_user_t *aUser)
     assert (!authUser());
     user(aUser);
 
-    user()->lock()
-
-    ;
+    user()->lock();
 }
 
 AuthDigestUserRequest::CredentialsState
index 811feb11d0b91c8da765cb6df6a3322f99a8ed8c..48c6d809290172cf1d26bb8078b843e1c787eb26 100644 (file)
@@ -95,17 +95,10 @@ public:
 
     struct
     {
-
-unsigned int authinfo_sent:
-        1;
-
+        unsigned int authinfo_sent:1;
        unsigned int invalid_password:1;
-
-unsigned int helper_queried:
-        1;
-    }
-
-    flags;
+        unsigned int helper_queried:1;
+    } flags;
     digest_nonce_h *nonce;
 
 private:
@@ -140,15 +133,9 @@ struct _digest_nonce_h : public hash_link
 
     struct
     {
-
-unsigned int valid:
-        1;
-
-unsigned int incache:
-        1;
-    }
-
-    flags;
+        unsigned int valid:1;
+        unsigned int incache:1;
+    } flags;
 };
 
 /* configuration runtime data */
index 75a4a16263b10363d83729348e9e2a26d60fa5f9..06cd93155be584a9371e964dd54b1d2b645b91fa 100644 (file)
@@ -2023,9 +2023,7 @@ parse_hostdomain(void)
 
         l->domain = xstrdup(domain);
 
-        for (L = &(p->peer_domain); *L; L = &((*L)->next))
-
-            ;
+        for (L = &(p->peer_domain); *L; L = &((*L)->next));
         *L = l;
     }
 }
@@ -2057,9 +2055,7 @@ parse_hostdomaintype(void)
         l->type = parseNeighborType(type);
         l->domain = xstrdup(domain);
 
-        for (L = &(p->typelist); *L; L = &((*L)->next))
-
-            ;
+        for (L = &(p->typelist); *L; L = &((*L)->next));
         *L = l;
     }
 }
index d3b08a5d828c85a11152140771c41c63af95c379..9e6450322bea8bd847e850e7de54b880b7c6268c 100644 (file)
@@ -104,9 +104,7 @@ CacheManager::registerAction(char const * action, char const * desc, OBJH * hand
     a->flags.pw_req = pw_req_flag;
     a->flags.atomic = atomic;
 
-    for (A = &ActionTable; *A; A = &(*A)->next)
-
-        ;
+    for (A = &ActionTable; *A; A = &(*A)->next);
     *A = a;
 
     debugs(16, 3, "CacheManager::registerAction: registered " <<  action);
@@ -271,9 +269,7 @@ cachemgrStart(int fd, HttpRequest * request, StoreEntry * entry)
 
     mgr->entry = entry;
 
-    entry->lock()
-
-    ;
+    entry->lock();
     entry->expires = squid_curtime;
 
     debugs(16, 5, "CACHEMGR: " << fd_table[fd].ipaddr << " requesting '" << mgr->action << "'");
index f97ac5629e3621105baa7e66d1c3cfc7cd365e72..6766fe6e9c0872aadf84fa6bf855fe20741e199a 100644 (file)
@@ -158,8 +158,7 @@ cbdata::operator new(size_t size, void *where)
  */
 void
 cbdata::operator delete(void *where, void *where2)
-{
-  ;
+{;
 }
 
 long
index 76b253b7799d848f38257b651e9585423a7fa9a9..db8561a4b2503e675ccb3a37555c6b10411b4a16 100644 (file)
@@ -2035,9 +2035,7 @@ ConnStateData::addContextToQueue(ClientSocketContext * context)
     ClientSocketContext::Pointer *S;
 
     for (S = (ClientSocketContext::Pointer *) & currentobject; S->getRaw();
-            S = &(*S)->next)
-
-        ;
+            S = &(*S)->next);
     *S = context;
 
     ++nrequests;
@@ -2050,9 +2048,7 @@ ConnStateData::getConcurrentRequestCount() const
     ClientSocketContext::Pointer *T;
 
     for (T = (ClientSocketContext::Pointer *) &currentobject;
-            T->getRaw(); T = &(*T)->next, ++result)
-
-        ;
+            T->getRaw(); T = &(*T)->next, ++result);
     return result;
 }
 
@@ -2653,9 +2649,7 @@ ConnStateData::requestTimeout(const CommTimeoutCbParams &io)
         assert(chr == NULL);
         /* add to the client request queue */
 
-        for (H = &chr; *H; H = &(*H)->next)
-
-            ;
+        for (H = &chr; *H; H = &(*H)->next);
         *H = http;
 
         clientStreamRead(http->client_stream.tail->data, http, 0,
index 38408bbbe56de292683c70ab1d70e9e3b842d377..51d118bce025c4d36ed34315d977f4dbcc68b938 100644 (file)
@@ -825,9 +825,7 @@ clientReplyContext::purgeFoundObject(StoreEntry *entry)
     /* Swap in the metadata */
     http->storeEntry(entry);
 
-    http->storeEntry()->lock()
-
-    ;
+    http->storeEntry()->lock();
     http->storeEntry()->createMemObject(http->uri, http->log_uri);
 
     http->storeEntry()->mem_obj->method = http->request->method;
@@ -1605,9 +1603,7 @@ clientReplyContext::doGetMoreData()
         /* someone found the object in the cache for us */
         StoreIOBuffer tempBuffer;
 
-        http->storeEntry()->lock()
-
-        ;
+        http->storeEntry()->lock();
 
         if (http->storeEntry()->mem_obj == NULL) {
             /*
index 8d4375f61d079518ac3b849d15c33cc3ba48fdfc..f70dcaf12b8b424d92b698d2f04d061a8bb96e92 100644 (file)
@@ -1020,9 +1020,7 @@ ClientHttpRequest::loggingEntry(StoreEntry *newEntry)
     loggingEntry_ = newEntry;
 
     if (loggingEntry_)
-        loggingEntry_->lock()
-
-        ;
+        loggingEntry_->lock();
 }
 
 /*
index e7ed08501659b5b227f9a72fe160700eddf983a3..a642a8cf8d7db240a05f1579cee7df0bc96823b3 100644 (file)
@@ -105,9 +105,8 @@ public:
         int64_t offset;
         int64_t size;
         size_t headers_sz;
-    }
+    } out;
 
-    out;
     HttpHdrRangeIter range_iter;       /* data for iterating thru range specs */
     size_t req_sz;             /* raw request size on input, not current request size */
     log_type logType;
@@ -117,32 +116,19 @@ public:
 
     struct
     {
-
-unsigned int accel:
-        1;
-
-unsigned int transparent:
-        1;
-
-unsigned int internal:
-        1;
-
-unsigned int done_copying:
-        1;
-
-unsigned int purging:
-        1;
-    }
-
-    flags;
+        unsigned int accel:1;
+        unsigned int transparent:1;
+        unsigned int internal:1;
+        unsigned int done_copying:1;
+        unsigned int purging:1;
+    } flags;
 
     struct
     {
         http_status status;
         char *location;
-    }
+    } redirect;
 
-    redirect;
     dlink_node active;
     dlink_list client_stream;
     int mRangeCLen();
index 7c752dbc1e8fbfe9566f382a2d45ccb62264eaca..9d778197deb1c758fff6fd303afe911006607bea 100644 (file)
@@ -616,9 +616,7 @@ comm_select(int msec)
         statCounter.select_time += (current_dtime - start);
 
         return COMM_OK;
-    } while (timeout > current_dtime)
-
-        ;
+    } while (timeout > current_dtime);
     debugs(5, 8, "comm_select: time out: " << squid_curtime);
 
     return COMM_TIMEOUT;
index 4806c12dc510520bf8a27fa8ea18876f6cc6ba46..a09ea5e160002d03170ec5027f6d9f71872dd31f 100644 (file)
@@ -638,9 +638,7 @@ comm_select(int msec)
         statCounter.select_time += (current_dtime - start);
 
         return COMM_OK;
-    } while (timeout > current_dtime)
-
-        ;
+    } while (timeout > current_dtime);
     debugs(5, 8, "comm_select: time out: " << squid_curtime);
 
     return COMM_TIMEOUT;
index cfe2ebc63a4a370b0e836b7d83eda8e9050f9802..43707a429327139c8a141eedf4a993e97a440a9c 100644 (file)
@@ -223,9 +223,7 @@ debugArg(const char *arg) {
     } else {
         s = atoi(arg);
 
-        while (*arg && *arg++ != ',')
-
-            ;
+        while (*arg && *arg++ != ',');
     }
 
     l = atoi(arg);
index 118b23def2f43f745dc39b356546816ad51187d5..04a541aeb36270c688c886b4751a00b3c3d49bfb 100644 (file)
@@ -104,21 +104,16 @@ public:
 
     struct
     {
-
-unsigned int flag_cbdata:
-        1;
-    }
-
-    flags;
+        unsigned int flag_cbdata:1;
+    } flags;
 
     struct
     {
         wordlist *server_msg;
         char *request;
         char *reply;
-    }
+    } ftp;
 
-    ftp;
     char *request_hdrs;
     char *err_msg; /* Preformatted error message from the cache */
 
index 48e060311b93316400cb8d41af928841b2b41706..d8e47225d9103824729b14efb3c93de51e3c3f93 100644 (file)
@@ -100,9 +100,7 @@ FwdState::FwdState(int fd, StoreEntry * e, HttpRequest * r)
     request = HTTPMSGLOCK(r);
     start_t = squid_curtime;
 
-    e->lock()
-
-    ;
+    e->lock();
     EBIT_SET(e->flags, ENTRY_FWD_HDR_WAIT);
 }
 
@@ -519,9 +517,7 @@ FwdState::retryOrBail() {
             FwdServer **T, *T2 = NULL;
             servers = fs->next;
 
-            for (T = &servers; *T; T2 = *T, T = &(*T)->next)
-
-                ;
+            for (T = &servers; *T; T2 = *T, T = &(*T)->next);
             if (T2 && T2->_peer) {
                 /* cycle */
                 *T = fs;
index 90e46956d9b45529172b45298ea69eab7622632a..40dbcecf8a6eb2dc60464f24ef2fb69cfce66a46 100644 (file)
@@ -95,14 +95,9 @@ private:
 
     struct
     {
-
-unsigned int dont_retry:
-        1;
-
-unsigned int ftp_pasv_failed:
-        1;
-
-unsigned int forward_completed:1;
+        unsigned int dont_retry:1;
+        unsigned int ftp_pasv_failed:1;
+        unsigned int forward_completed:1;
     }
 
     flags;
index 5e0b9356d5273e69083bdfc3bf8cf5ba88de0be9..58c391436e2d550d90e2cd13caef193ddfcd01c0 100644 (file)
@@ -110,12 +110,8 @@ struct _fqdncache_entry
 
     struct
     {
-
-unsigned int negcached:
-        1;
-
-unsigned int fromhosts:
-        1;
+        unsigned int negcached:1;
+        unsigned int fromhosts:1;
     }
 
     flags;
@@ -505,7 +501,6 @@ fqdncacheHandleReply(void *data, rfc1035_rr * answers, int na, const char *error
 #if USE_DNSSERVERS
 
     fqdncacheParse(f, reply);
-    ;
 #else
 
     fqdncacheParse(f, answers, na, error_message);
index 20bacd5e8d6de5c3286a409fb58440e5a3a8d625..3c1103853bf327531f8eb1f8228e6c8bebef1a1e 100644 (file)
@@ -74,15 +74,9 @@ public:
 
     struct
     {
-
-unsigned int reading:
-        1;
-
-unsigned int writing:
-        1;
-    }
-
-    flags;
+        unsigned int reading:1;
+        unsigned int writing:1;
+    } flags;
 
     CossMemBuf *locked_membuf;
     off_t st_size;
index 43d17627e8fdc289cca0ed8b0295826c8f8feaa9..0a966a3b0c4911c56d684257fced504ff0613cf4 100644 (file)
@@ -67,12 +67,8 @@ struct _RebuildState
 
     struct
     {
-
-unsigned int clean:
-        1;
-    }
-
-    flags;
+        unsigned int clean:1;
+    } flags;
 
     struct _store_rebuild_data counts;
 };
@@ -111,9 +107,7 @@ storeCossDirSwapLogFile(SwapDir * sd, const char *ext)
         while (strlen(pathtmp) && pathtmp[strlen(pathtmp) - 1] == '.')
             pathtmp[strlen(pathtmp) - 1] = '\0';
 
-        for (pathtmp2 = pathtmp; *pathtmp2 == '.'; pathtmp2++)
-
-            ;
+        for (pathtmp2 = pathtmp; *pathtmp2 == '.'; pathtmp2++);
         snprintf(path, SQUID_MAXPATHLEN - 64, Config.Log.swap, pathtmp2);
 
         if (strncmp(path, Config.Log.swap, SQUID_MAXPATHLEN - 64) == 0) {
index ed2c4389e3a9a4042d1b2c6d37a752d465ccef53..913ddff465dbb3fdf37a9eae3821e0819b44ce17 100644 (file)
@@ -602,9 +602,7 @@ UFSSwapDir::logFile(char const *ext) const
         while (strlen(pathtmp) && pathtmp[strlen(pathtmp) - 1] == '.')
             pathtmp[strlen(pathtmp) - 1] = '\0';
 
-        for (pathtmp2 = pathtmp; *pathtmp2 == '.'; pathtmp2++)
-
-            ;
+        for (pathtmp2 = pathtmp; *pathtmp2 == '.'; pathtmp2++);
         snprintf(lpath, SQUID_MAXPATHLEN - 64, Config.Log.swap, pathtmp2);
 
         if (strncmp(lpath, Config.Log.swap, SQUID_MAXPATHLEN - 64) == 0) {
index 0867a33a188dbee655c80314ccf682c35bbe2512..0d1b96d2277d3268c1148358e05ea81ea7c0c8db 100644 (file)
@@ -398,18 +398,10 @@ public:
 
     struct
     {
-
-unsigned int need_to_validate:
-        1;
-
-unsigned int clean:
-        1;
-
-unsigned int init:
-        1;
-    }
-
-    flags;
+        unsigned int need_to_validate:1;
+        unsigned int clean:1;
+        unsigned int init:1;
+    } flags;
     int in_dir;
     int done;
     int fn;
index e4f3d2ad8a14126ddc86c289e9a21500c4929bc6..db7c9b96359f1e36a04e3d77c5771c97c7721372 100644 (file)
@@ -1021,9 +1021,7 @@ FtpStateData::htmlifyListEntry(const char *line)
         const char *p;
         snprintf(html, 8192, "%s\n", line);
 
-        for (p = line; *p && xisspace(*p); p++)
-
-            ;
+        for (p = line; *p && xisspace(*p); p++);
         if (*p && !xisspace(*p))
             flags.listformat_unknown = 1;
 
@@ -1866,9 +1864,7 @@ FtpStateData::handleControlReply()
     }
 
     /* Move the last line of the reply message to ctrl.last_reply */
-    for (W = &ctrl.message; (*W)->next; W = &(*W)->next)
-
-        ;
+    for (W = &ctrl.message; (*W)->next; W = &(*W)->next);
     safe_free(ctrl.last_reply);
 
     ctrl.last_reply = xstrdup((*W)->key);
index bfa51d3e54063c7a8e93038673ca20b60f62b33b..9fdd3995be8d26bbd996cfa074a840cf1ba743d5 100644 (file)
@@ -1013,9 +1013,7 @@ gopherStart(FwdState * fwd)
     gopherState = cbdataAlloc(GopherStateData);
     gopherState->buf = (char *)memAllocate(MEM_4K_BUF);
 
-    entry->lock()
-
-    ;
+    entry->lock();
     gopherState->entry = entry;
 
     gopherState->fwd = fwd;
index 0e7f5427035ab41a6d40ad758eb0596cb9d854f2..75e2f4842bcd2a32283e9d003531d879d3e473ec 100644 (file)
@@ -133,26 +133,16 @@ struct _helper_server
 
     struct _helper_flags
     {
-
-unsigned int writing:
-        1;
-
-unsigned int closing:
-        1;
-
-unsigned int shutdown:
-        1;
-    }
-
-    flags;
+        unsigned int writing:1;
+        unsigned int closing:1;
+        unsigned int shutdown:1;
+    } flags;
 
     struct
     {
         int uses;
         unsigned int pending;
-    }
-
-    stats;
+    } stats;
 
     void *hIpc;
 };
@@ -183,19 +173,11 @@ struct _helper_stateful_server
 
     struct _helper_stateful_flags
     {
-
-unsigned int busy:
-        1;
-
-unsigned int closing:
-        1;
-
-unsigned int shutdown:
-        1;
+        unsigned int busy:1;
+        unsigned int closing:1;
+        unsigned int shutdown:1;
         stateful_helper_reserve_t reserved;
-    }
-
-    flags;
+    } flags;
 
     struct
     {
@@ -204,9 +186,7 @@ unsigned int shutdown:
         int releases;
         int deferbyfunc;
         int deferbycb;
-    }
-
-    stats;
+    } stats;
     int deferred_requests;     /* current number of deferred requests */
     void *data;                        /* State data used by the calling routines */
     void *hIpc;
index 83a2d4baf2032a30eb3d179939b77f125e066a13..c989abd0bc686ebad5853d9f79373de4adc8bb64 100644 (file)
@@ -75,41 +75,23 @@ struct _htcpHeader
 struct _htcpDataHeaderSquid
 {
     u_int16_t length;
-#if !WORDS_BIGENDIAN
-
-unsigned int opcode:
-    4;
 
-unsigned int response:
-    4;
+#if !WORDS_BIGENDIAN
+    unsigned int opcode:4;
+    unsigned int response:4;
 #else
-
-unsigned int response:
-    4;
-
-unsigned int opcode:
-    4;
+    unsigned int response:4;
+    unsigned int opcode:4;
 #endif
-#if !WORDS_BIGENDIAN
 
-unsigned int reserved:
-    6;
-
-unsigned int F1:
-    1;
-
-unsigned int RR:
-    1;
+#if !WORDS_BIGENDIAN
+    unsigned int reserved:6;
+    unsigned int F1:1;
+    unsigned int RR:1;
 #else
-
-unsigned int RR:
-    1;
-
-unsigned int F1:
-    1;
-
-unsigned int reserved:
-    6;
+    unsigned int RR:1;
+    unsigned int F1:1;
+    unsigned int reserved:6;
 #endif
 
     u_int32_t msg_id;
@@ -118,41 +100,23 @@ unsigned int reserved:
 struct _htcpDataHeader
 {
     u_int16_t length;
-#if WORDS_BIGENDIAN
-
-u_int8_t opcode:
-    4;
 
-u_int8_t response:
-    4;
+#if WORDS_BIGENDIAN
+    u_int8_t opcode:4;
+    u_int8_t response:4;
 #else
-
-u_int8_t response:
-    4;
-
-u_int8_t opcode:
-    4;
+    u_int8_t response:4;
+    u_int8_t opcode:4;
 #endif
-#if WORDS_BIGENDIAN
 
-u_int8_t reserved:
-    6;
-
-u_int8_t F1:
-    1;
-
-u_int8_t RR:
-    1;
+#if WORDS_BIGENDIAN
+    u_int8_t reserved:6;
+    u_int8_t F1:1;
+    u_int8_t RR:1;
 #else
-
-u_int8_t RR:
-    1;
-
-u_int8_t F1:
-    1;
-
-u_int8_t reserved:
-    6;
+    u_int8_t RR:1;
+    u_int8_t F1:1;
+    u_int8_t reserved:6;
 #endif
 
     u_int32_t msg_id;
index ece329c27681e04d168c97c69cd583885792f25a..ac7f1b52d68f210d9009e36d449cc44ec9322792 100644 (file)
@@ -179,9 +179,7 @@ identReadReply(int fd, char *buf, size_t len, comm_err_t flag, int xerrno, void
 
     if (strstr(buf, "USERID")) {
         if ((ident = strrchr(buf, ':'))) {
-            while (xisspace(*++ident))
-
-                ;
+            while (xisspace(*++ident));
             identCallback(state, ident);
         }
     }
@@ -198,9 +196,7 @@ identClientAdd(IdentStateData * state, IDCB * callback, void *callback_data)
     c->callback = callback;
     c->callback_data = cbdataReference(callback_data);
 
-    for (C = &state->clients; *C; C = &(*C)->next)
-
-        ;
+    for (C = &state->clients; *C; C = &(*C)->next);
     *C = c;
 }
 
index 4ac7ebced1904a9b21904758f4a9260450004a00..fc56b985baba6037d071f01696837890d584a33a 100644 (file)
@@ -110,12 +110,8 @@ struct _ipcache_entry
 
     struct
     {
-
-unsigned int negcached:
-        1;
-
-unsigned int fromhosts:
-        1;
+        unsigned int negcached:1;
+        unsigned int fromhosts:1;
     }
 
     flags;
index dd138efcef8b93f42f9f1f868a9c1374f6bf2831..d596f3573b328ba9071da98e6deb361a9c4d395c 100644 (file)
@@ -58,9 +58,7 @@ public:
     StoreIOBuffer nodeBuffer;
     /* Private */
     char data[SM_PAGE_SIZE];
-
-unsigned int write_pending:
-    1;
+    unsigned int write_pending:1;
 };
 
 MEMPROXY_CLASS_INLINE(mem_node)                /**DOCS_NOSEMI*/
index d528b670d129fda7d9c551c83c1d5d19715b9b02..892cae5e12157f5fcc73c703aff5d30382f63fdb 100644 (file)
@@ -74,11 +74,9 @@ public:
     char *content_encoding;
     char transfer_mode;
 
-unsigned int view_option:
-    1;
+    unsigned int view_option:1;
+    unsigned int download_option:1;
 
-unsigned int download_option:
-    1;
     mimeEntry *next;
     MimeIcon theIcon;
 };
index ee7190a4b2dd395c1a2bb54759b097a28a4a8b36..2a0d23578b13a796fa13aa58cbfd76c26d4bd0be 100644 (file)
@@ -376,9 +376,7 @@ peerDigestRequest(PeerDigest * pd)
     if (old_e) {
         debugs(72, 5, "peerDigestRequest: found old entry");
 
-        old_e->lock()
-
-        ;
+        old_e->lock();
         old_e->createMemObject(url, url);
 
         fetch->old_sc = storeClientListAdd(old_e, fetch);
index 596dd10938dd879489a16a60aa878c9ad51a749c..81e48ab4931acf236fb7a5aee63d58d8ff9043f6 100644 (file)
@@ -234,9 +234,7 @@ try_again:
 
     if (entry->locked()) {
 
-        entry->lock()
-
-        ;
+        entry->lock();
         linklistPush(&heap_walker->locked_entries, entry);
 
         goto try_again;
index c1277e29684877c1b4cdc7f7c1537fe259d77b12..8cdca74f73abf4543e41b31503bcf878edfc7ac2 100644 (file)
@@ -379,9 +379,7 @@ statObjectsStart(StoreEntry * sentry, STOBJFLT * filter)
     state->sentry = sentry;
     state->filter = filter;
 
-    sentry->lock()
-
-    ;
+    sentry->lock();
     state->theSearch = Store::Root().search(NULL, NULL);
 
     eventAdd("statObjects", statObjects, state, 0.0, 1);
index ccfa95c71cb8c288241bf44a1d4c7b663f26293f..04759ed2fd809308aaf2a40fc5c95f3759fbac28 100644 (file)
@@ -585,8 +585,7 @@ store_client::readHeader(char const *buf, ssize_t len)
         /*
          * we have (part of) what they want
          */
-        size_t copy_sz = XMIN(copyInto.length, body_sz)
-                         ;
+        size_t copy_sz = XMIN(copyInto.length, body_sz);
         debugs(90, 3, "storeClientReadHeader: copying " << copy_sz << " bytes of body");
         xmemmove(copyInto.data, copyInto.data + mem->swap_hdr_sz, copy_sz);
 
index 75ccf07693bf37492d0091a482775c07de527291..cc596dd3561e7c5b5487a98c06942e553ba0fd99 100644 (file)
@@ -78,9 +78,7 @@ storeSwapOutStart(StoreEntry * e)
     /* Don't lock until after create, or the replacement
      * code might get confused */
 
-    e->lock()
-
-    ;
+    e->lock();
     /* Pick up the file number if it was assigned immediately */
     e->swap_filen = mem->swapout.sio->swap_filen;
 
index b4ad30392fd237f2ff9fc15c5e3bcb24d21dd008..ba12390e222c71985983d9172f6736f9e5bf239d 100644 (file)
@@ -151,9 +151,7 @@ struct _SquidConfig
         */
         int highWaterMark;
         int lowWaterMark;
-    }
-
-    Swap;
+    } Swap;
     size_t memMaxSize;
 
     struct
@@ -161,9 +159,7 @@ struct _SquidConfig
         int64_t min;
         int pct;
         int64_t max;
-    }
-
-    quickAbort;
+    } quickAbort;
     int64_t readAheadGap;
     RemovalPolicySettings *replPolicy;
     RemovalPolicySettings *memPolicy;
@@ -199,9 +195,7 @@ struct _SquidConfig
         time_t idns_query;
 #endif
 
-    }
-
-    Timeout;
+    } Timeout;
     size_t maxRequestHeaderSize;
     int64_t maxRequestBodySize;
     size_t maxReplyHeaderSize;
@@ -218,10 +212,7 @@ struct _SquidConfig
 
         u_short snmp;
 #endif
-
-    }
-
-    Port;
+    } Port;
 
     struct
     {
@@ -231,18 +222,14 @@ struct _SquidConfig
         https_port_list *https;
 #endif
 
-    }
-
-    Sockaddr;
+    } Sockaddr;
 #if SQUID_SNMP
 
     struct
     {
         char *configFile;
         char *agentInfo;
-    }
-
-    Snmp;
+    } Snmp;
 #endif
 #if USE_WCCP
 
@@ -253,9 +240,7 @@ struct _SquidConfig
 
         IPAddress address;
         int version;
-    }
-
-    Wccp;
+    } Wccp;
 #endif
 #if USE_WCCPv2
 
@@ -841,41 +826,18 @@ public:
 
 struct _http_state_flags
 {
-
-unsigned int proxying:
-    1;
-
-unsigned int keepalive:
-    1;
-
-unsigned int only_if_cached:
-    1;
-
-unsigned int headers_parsed:
-    1;
-
-unsigned int front_end_https:
-    2;
-
-unsigned int originpeer:
-    1;
-
-unsigned int keepalive_broken:
-    1;
-
-unsigned int abuse_detected:
-    1;
-
-unsigned int request_sent:
-    1;
-
-unsigned int do_next_read:
-    1;
-
-unsigned int consume_body_data:
-    1;
-
-unsigned int chunked:1;
+    unsigned int proxying:1;
+    unsigned int keepalive:1;
+    unsigned int only_if_cached:1;
+    unsigned int headers_parsed:1;
+    unsigned int front_end_https:2;
+    unsigned int originpeer:1;
+    unsigned int keepalive_broken:1;
+    unsigned int abuse_detected:1;
+    unsigned int request_sent:1;
+    unsigned int do_next_read:1;
+    unsigned int consume_body_data:1;
+    unsigned int chunked:1;
 };
 
 struct _ipcache_addrs
@@ -973,63 +935,30 @@ struct _peer
 
     struct
     {
-
-unsigned int proxy_only:
-        1;
-
-unsigned int no_query:
-        1;
-
-unsigned int background_ping:
-        1;
-
-unsigned int no_digest:
-        1;
-
-unsigned int default_parent:
-        1;
-
-unsigned int roundrobin:
-        1;
-
-unsigned int weighted_roundrobin:
-        1;
-
-unsigned int mcast_responder:
-        1;
-
-unsigned int closest_only:
-        1;
+        unsigned int proxy_only:1;
+        unsigned int no_query:1;
+        unsigned int background_ping:1;
+        unsigned int no_digest:1;
+        unsigned int default_parent:1;
+        unsigned int roundrobin:1;
+        unsigned int weighted_roundrobin:1;
+        unsigned int mcast_responder:1;
+        unsigned int closest_only:1;
 #if USE_HTCP
-
-unsigned int htcp:
-        1;
-
-unsigned int htcp_oldsquid:
-        1;
+        unsigned int htcp:1;
+        unsigned int htcp_oldsquid:1;
 #endif
-
-unsigned int no_netdb_exchange:
-        1;
+        unsigned int no_netdb_exchange:1;
 #if DELAY_POOLS
-
-unsigned int no_delay:
-        1;
+        unsigned int no_delay:1;
 #endif
-
-unsigned int allow_miss:
-        1;
+        unsigned int allow_miss:1;
 #if USE_CARP
-
-unsigned int carp:
-        1;
+        unsigned int carp:1;
 #endif
+        unsigned int originserver:1;
+    } options;
 
-unsigned int originserver:
-        1;
-    }
-
-    options;
     int weight;
     int basetime;
 
@@ -1043,18 +972,10 @@ unsigned int originserver:
 
         struct
         {
-
-unsigned int count_event_pending:
-            1;
-
-unsigned int counting:
-            1;
-        }
-
-        flags;
-    }
-
-    mcast;
+            unsigned int count_event_pending:1;
+            unsigned int counting:1;
+        } flags;
+    } mcast;
 #if USE_CACHE_DIGESTS
 
     PeerDigest *digest;
@@ -1164,68 +1085,31 @@ struct request_flags
 #if LINUX_TPROXY
        tproxy = 0;
 #endif
-
     }
 
-unsigned int range:
-    1;
-
-unsigned int nocache:
-    1;
-
-unsigned int ims:
-    1;
-
-unsigned int auth:
-    1;
-
-unsigned int cachable:
-    1;
-
-unsigned int hierarchical:
-    1;
-
-unsigned int loopdetect:
-    1;
-
-unsigned int proxy_keepalive:
-    1;
-
-unsigned int proxying:
-    1; /* this should be killed, also in httpstateflags */
-
-unsigned int refresh:
-    1;
-
-unsigned int redirected:
-    1;
-
-unsigned int need_validation:
-    1;
+    unsigned int range:1;
+    unsigned int nocache:1;
+    unsigned int ims:1;
+    unsigned int auth:1;
+    unsigned int cachable:1;
+    unsigned int hierarchical:1;
+    unsigned int loopdetect:1;
+    unsigned int proxy_keepalive:1;
+    unsigned int proxying:1;   /* this should be killed, also in httpstateflags */
+    unsigned int refresh:1;
+    unsigned int redirected:1;
+    unsigned int need_validation:1;
 #if HTTP_VIOLATIONS
-
-unsigned int nocache_hack:
-    1; /* for changing/ignoring no-cache requests */
+    unsigned int nocache_hack:1;       /* for changing/ignoring no-cache requests */
 #endif
-
-unsigned int accelerated:
-    1;
-
-unsigned int transparent:
-    1;
-
+    unsigned int accelerated:1;
+    unsigned int transparent:1;
 #if LINUX_TPROXY
-unsigned int tproxy:
-    1; /* spoof client ip using tproxy */
+    unsigned int tproxy:1; /* spoof client ip using tproxy */
 #endif
-unsigned int internal:
-    1;
-
-unsigned int internalclient:
-    1;
-
-unsigned int must_keepalive:
-    1;
+    unsigned int internal:1;
+    unsigned int internalclient:1;
+    unsigned int must_keepalive:1;
 
     // When adding new flags, please update cloneAdaptationImmune() as needed.
 
@@ -1241,11 +1125,8 @@ unsigned int must_keepalive:
 
 private:
 
-unsigned int reset_tcp:
-    1;
-
-unsigned int destinationIPLookedUp_:
-    1;
+    unsigned int reset_tcp:1;
+    unsigned int destinationIPLookedUp_:1;
 };
 
 struct _link_list
@@ -1273,42 +1154,19 @@ struct _refresh_t
 
     struct
     {
-
-unsigned int icase:
-        1;
-
-unsigned int refresh_ims:
-        1;
+        unsigned int icase:1;
+        unsigned int refresh_ims:1;
 #if HTTP_VIOLATIONS
-
-unsigned int override_expire:
-        1;
-
-unsigned int override_lastmod:
-        1;
-
-unsigned int reload_into_ims:
-        1;
-
-unsigned int ignore_reload:
-        1;
-
-unsigned int ignore_no_cache:
-        1;
-
-unsigned int ignore_no_store:
-        1;
-
-unsigned int ignore_private:
-        1;
-
-unsigned int ignore_auth:
-        1;
+        unsigned int override_expire:1;
+        unsigned int override_lastmod:1;
+        unsigned int reload_into_ims:1;
+        unsigned int ignore_reload:1;
+        unsigned int ignore_no_cache:1;
+        unsigned int ignore_no_store:1;
+        unsigned int ignore_private:1;
+        unsigned int ignore_auth:1;
 #endif
-
-    }
-
-    flags;
+    } flags;
 };
 
 /*
@@ -1351,9 +1209,7 @@ struct _StatCounters
         StatHist nh_svc_time;
         StatHist hit_svc_time;
         StatHist all_svc_time;
-    }
-
-    client_http;
+    } client_http;
 
     struct
     {
@@ -1364,12 +1220,8 @@ struct _StatCounters
             int errors;
             kb_t kbytes_in;
             kb_t kbytes_out;
-        }
-
-        all , http, ftp, other;
-    }
-
-    server;
+        } all , http, ftp, other;
+    } server;
 
     struct
     {
@@ -1401,23 +1253,17 @@ struct _StatCounters
     {
         int pkts_sent;
         int pkts_recv;
-    }
-
-    htcp;
+    } htcp;
 
     struct
     {
         int requests;
-    }
-
-    unlink;
+    } unlink;
 
     struct
     {
         StatHist svc_time;
-    }
-
-    dns;
+    } dns;
 
     struct
     {
@@ -1433,16 +1279,12 @@ struct _StatCounters
 #endif
 
         StatHist on_xition_count;
-    }
-
-    cd;
+    } cd;
 
     struct
     {
         int times_used;
-    }
-
-    netdb;
+    } netdb;
     int page_faults;
     int select_loops;
     int select_fds;
@@ -1457,7 +1299,6 @@ struct _StatCounters
 
     struct
     {
-
         struct
         {
             int opens;
@@ -1466,9 +1307,7 @@ struct _StatCounters
             int writes;
             int seeks;
             int unlinks;
-        }
-
-        disk;
+        } disk;
 
         struct
         {
@@ -1481,13 +1320,9 @@ struct _StatCounters
             int writes;
             int recvfroms;
             int sendtos;
-        }
-
-        sock;
+        } sock;
         int selects;
-    }
-
-    syscalls;
+    } syscalls;
     int aborted_requests;
 
     struct
@@ -1495,9 +1330,7 @@ struct _StatCounters
         int files_cleaned;
         int outs;
         int ins;
-    }
-
-    swap;
+    } swap;
 };
 
 /* per header statistics */
@@ -1533,18 +1366,14 @@ struct _ClientInfo
         kb_t kbytes_in;
         kb_t kbytes_out;
         kb_t hit_kbytes_out;
-    }
-
-    Http, Icp;
+    } Http, Icp;
 
     struct
     {
         time_t time;
         int n_req;
         int n_denied;
-    }
-
-    cutoff;
+    } cutoff;
     int n_established;         /* number of current established connections */
     time_t last_seen;
 };
@@ -1587,9 +1416,7 @@ struct _Logfile
     {
         unsigned int fatal;
         unsigned int syslog;
-    }
-
-    flags;
+    } flags;
 
     int syslog_priority;
 };
index a9d3659e8e775cf3329e90eefd041d1d4b4751d5..195e54ce5e94ddd57bdc8411d21a1eb5dbae4243 100644 (file)
@@ -118,7 +118,8 @@ fake_auth_setup()
     params[]={ {"digest", digest_parms, 2},
                {"basic", basic_parms, 2},
                {"ntlm", ntlm_parms, 1},
-               {"negotiate", negotiate_parms, 1}};
+               {"negotiate", negotiate_parms, 1}
+             };
 
     for (unsigned scheme=0; scheme < 4; scheme++)
         setup_scheme(getConfig(params[scheme].name), params[scheme].params, params[scheme].paramlength);
index b7c5a191f960283b5b2bf1c67a1e16dfa82a9bd1..5fe93bb0724a78e5a4e94a00a31196db42891ac7 100644 (file)
@@ -80,8 +80,7 @@ testEvent::testDump()
                      "\n"
                      "Operation                \tNext Execution \tWeight\tCallback Valid?\n"
                      "test event               \t0.000 sec\t    0\t N/A\n"
-                     "test event2              \t0.000 sec\t    0\t N/A\n"
-                     ;
+                     "test event2              \t0.000 sec\t    0\t N/A\n";
 
     scheduler.schedule("last event", CalledEvent::Handler, &event, 0, 0, false);
 
index d7ce3296e0df2018f9e9275beae96d8a6f6136e1..81b6e74fb9bcaf54faa4cef6564025e67b996bf8 100644 (file)
@@ -582,9 +582,7 @@ sig_child(int sig) {
 
     }
 
-    while (pid > 0 || (pid < 0 && errno == EINTR))
-
-        ;
+    while (pid > 0 || (pid < 0 && errno == EINTR));
     signal(sig, sig_child);
 
 #endif
index 5378178bd771c15c37eeecb30ad5d15e611490af..218d4933e22b2a9bb17e371adfbcbc68cf901f0f 100644 (file)
@@ -70,12 +70,8 @@ public:
 
     struct
     {
-
-unsigned int force_menu:
-        1;
-    }
-
-    flags;
+        unsigned int force_menu:1;
+    } flags;
     char reqbuf[URN_REQBUF_SZ];
     int reqofs;
 
@@ -249,9 +245,7 @@ UrnState::start(HttpRequest * r, StoreEntry * e)
     entry = e;
     request = HTTPMSGLOCK(r);
 
-    entry->lock()
-
-    ;
+    entry->lock();
     setUriResFromRequest(r);
 
     if (urlres_r == NULL)
@@ -271,9 +265,7 @@ UrnState::created(StoreEntry *newEntry)
         FwdState::fwdStart(-1, urlres_e, urlres_r);
     } else {
 
-        urlres_e->lock()
-
-        ;
+        urlres_e->lock();
         sc = storeClientListAdd(urlres_e, this);
     }
 
index f50b87340bf5c5505e6a28056e054a0d3539f9c6..c752b018a4cbca6edc64cd3bd7fbd82ef06ecd0a 100644 (file)
@@ -442,7 +442,6 @@ struct wccp2_service_list_t
     uint32_t change_num;
 
     char *wccp2_identity_info_ptr;
-    ;
 
     struct wccp2_security_md5_t *security_info;
 
index 5af81a502d5b9f38731b75c8093e6d61464abe5c..9bbd8ca1653652a90d02604fd3ed26b049c82c0e 100644 (file)
@@ -91,9 +91,7 @@ whoisStart(FwdState * fwd)
     p->fwd = fwd;
     p->dataWritten = false;
 
-    p->entry->lock()
-
-    ;
+    p->entry->lock();
     comm_add_close_handler(fd, whoisClose, p);
 
     l = p->request->urlpath.size() + 3;
index 966e401f10c2f2d1ff099ffe3e257c86d005f367..1704194b95a3ef5b032379c97f3f3ca183101b71 100644 (file)
@@ -435,9 +435,7 @@ parse_status_line(const char *sline, const char **statusStr)
     if (strncasecmp(sline, "HTTP/", 5) || !sp)
         return -1;
 
-    while (xisspace(*++sp))
-
-        ;
+    while (xisspace(*++sp));
     if (!xisdigit(*sp))
         return -1;