]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Cleanup yet another astyle artefact where struct {} members have their
authorHenrik Nordstrom <henrik@henriknordstrom.net>
Sun, 16 Mar 2008 22:10:18 +0000 (23:10 +0100)
committerHenrik Nordstrom <henrik@henriknordstrom.net>
Sun, 16 Mar 2008 22:10:18 +0000 (23:10 +0100)
name broken out on a new line.

51 files changed:
include/radix.h
src/AccessLogEntry.h
src/CacheDigest.cc
src/DiskIO/DiskThreads/aiops.cc
src/DiskIO/DiskThreads/aiops_win32.cc
src/DiskIO/DiskThreads/async_io.cc
src/ESI.cc
src/ESIExpression.cc
src/ICAP/ICAPModXact.h
src/ICMPv4.h
src/MemObject.h
src/StoreClient.h
src/StoreIOState.h
src/SwapDir.h
src/access_log.cc
src/auth/basic/auth_basic.h
src/auth/negotiate/auth_negotiate.h
src/auth/ntlm/auth_ntlm.h
src/cache_diff.cc
src/cache_manager.cc
src/cf_gen.cc
src/client_side.h
src/client_side_reply.h
src/dns_internal.cc
src/errorpage.cc
src/external_acl.cc
src/forward.h
src/fqdncache.cc
src/fs/coss/StoreFScoss.h
src/fs/coss/store_dir_coss.cc
src/fs/ufs/ufscommon.cc
src/fs/ufs/ufscommon.h
src/ftp.cc
src/gopher.cc
src/helper.h
src/htcp.h
src/ident.cc
src/ipcache.cc
src/net_db.cc
src/peer_select.cc
src/redirect.cc
src/refresh.cc
src/store.cc
src/store_digest.cc
src/store_io.cc
src/store_rebuild.cc
src/structs.h
src/test_cache_digest.cc
src/typedefs.h
src/urn.cc
tools/cachemgr.cc

index c963531e86611cb54096f03a03e107b47b5855d0..ccfeae451fb3578bb89e43e9ab732459f0e15799 100644 (file)
@@ -65,9 +65,7 @@ struct squid_radix_node
             char *rn_Mask;     /* netmask, if present */
 
             struct squid_radix_node *rn_Dupedkey;
-        }
-
-        rn_leaf;
+        } rn_leaf;
 
         struct {               /* node only data: */
             int rn_Off;                /* where to start compare */
@@ -75,9 +73,7 @@ struct squid_radix_node
             struct squid_radix_node *rn_L;     /* progeny */
 
             struct squid_radix_node *rn_R;     /* progeny */
-        }
-
-        rn_node;
+        } rn_node;
     } rn_u;
 #ifdef RN_DEBUG
 
index b77d2ffe7887f8d648b07c8c660686df11221b40..b42b1ca0fc26d9866a52da7a81dda0ec5f38b8de 100644 (file)
@@ -62,9 +62,7 @@ public:
         int code;
         const char *content_type;
         HttpVersion version;
-    }
-
-    http;
+    } http;
 
     class ICPDetails
     {
@@ -73,9 +71,7 @@ public:
         ICPDetails() : opcode(ICP_INVALID) {}
 
         icp_opcode opcode;
-    }
-
-    icp;
+    } icp;
 
     class CacheDetails
     {
@@ -110,9 +106,7 @@ public:
         const char *ssluser;
 #endif
 
-    }
-
-    cache;
+    } cache;
 
     class Headers
     {
@@ -122,9 +116,7 @@ public:
 
         char *request;
         char *reply;
-    }
-
-    headers;
+    } headers;
 
     class Private
     {
@@ -133,9 +125,7 @@ public:
         Private() : method_str(NULL) {}
 
         const char *method_str;
-    }
-
-    _private;
+    } _private;
     HierarchyLogEntry hier;
     HttpReply *reply;
     HttpRequest *request;
index 994aaf801d0b988df4e4ccc2fef2844b425c53b3..a81b663f301155caa778eb2813ab0c8dc2f714aa 100644 (file)
@@ -46,9 +46,7 @@ typedef struct
     int bit_on_count;          /* #bits turned on */
     int bseq_len_sum;          /* sum of all bit seq length */
     int bseq_count;            /* number of bit seqs */
-}
-
-CacheDigestStats;
+} CacheDigestStats;
 
 /* local functions */
 static void cacheDigestHashKey(const CacheDigest * cd, const cache_key * key);
index 7ba554426ef7df62476f7a03368b489fcf24ab97..582eeb17c3cb4e0e975978abd124894f3ab554e4 100644 (file)
@@ -86,9 +86,7 @@ typedef struct squidaio_request_t
 
     struct stat *statp;
     squidaio_result_t *resultp;
-}
-
-squidaio_request_t;
+} squidaio_request_t;
 
 typedef struct squidaio_request_queue_t
 {
@@ -98,9 +96,7 @@ typedef struct squidaio_request_queue_t
     squidaio_request_t *volatile *volatile tailp;
     unsigned long requests;
     unsigned long blocked;     /* main failed to lock the queue */
-}
-
-squidaio_request_queue_t;
+} squidaio_request_queue_t;
 
 typedef struct squidaio_thread_t squidaio_thread_t;
 
index 4b9d2b1af5d6256cbd6f5b9721bbf67c36cecf43..ec670231f04aaba60ff747c59778bed9442137ff 100755 (executable)
@@ -82,9 +82,7 @@ typedef struct squidaio_request_t
 
     struct stat *statp;
     squidaio_result_t *resultp;
-}
-
-squidaio_request_t;
+} squidaio_request_t;
 
 typedef struct squidaio_request_queue_t
 {
@@ -94,9 +92,7 @@ typedef struct squidaio_request_queue_t
     squidaio_request_t *volatile *volatile tailp;
     unsigned long requests;
     unsigned long blocked;     /* main failed to lock the queue */
-}
-
-squidaio_request_queue_t;
+} squidaio_request_queue_t;
 
 typedef struct squidaio_thread_t squidaio_thread_t;
 
index 860b4c3e26d633d026d15c736e18bdb8ee44e954..cf182b0afa298f22274a4d9c357ce4a291dd435a 100644 (file)
@@ -48,9 +48,7 @@ typedef struct squidaio_unlinkq_t
     char *path;
 
     struct squidaio_unlinkq_t *next;
-}
-
-squidaio_unlinkq_t;
+} squidaio_unlinkq_t;
 
 dlink_list used_list;
 
index 145937a92b6666c3bfd91a6b5390eff1ab018eab..3aa898e9b0f238e4f87df003b5df34610cf9aaf1 100644 (file)
@@ -174,9 +174,7 @@ struct esiTry : public ESIElement
         int exceptok:1; /* likewise */
         int attemptfailed:1; /* The attempt branch failed */
         int exceptfailed:1; /* the except branch failed */
-    }
-
-    flags;
+    } flags;
     void finish();
 
 private:
index 1607a3eff41144787699e4b36dd8c5fa3a8f5b4d..beaf2832c77c5af26438eeb91dc462420546c5f7 100644 (file)
@@ -73,8 +73,7 @@ typedef enum
     ESI_EXPR_MORE,
     ESI_EXPR_MOREEQ,
     ESI_EXPR_EXPR                      /* the result of an expr PRI 1 */
-}
-evaltype;
+} evaltype;
 
 typedef enum
 {
@@ -83,8 +82,7 @@ typedef enum
     ESI_LITERAL_INT,
     ESI_LITERAL_BOOL,
     ESI_LITERAL_INVALID
-}
-literalhint;
+} literalhint;
 
 struct _stackmember
 {
@@ -94,8 +92,7 @@ struct _stackmember
         char *string;
         double floating;
         int integral;
-    }
-    value;
+    } value;
     literalhint valuestored;
     evaltype valuetype;
     int precedence;
index ebb69e1b3a49ecdbc18ff26f59da33d455b762d4..f24473d5963bf4749190659bb622594e8ccfab4d 100644 (file)
@@ -300,9 +300,7 @@ private:
 
         enum Sending { sendingUndecided, sendingVirgin, sendingAdapted,
                        sendingDone } sending;
-    }
-
-    state;
+    } state;
 
     CBDATA_CLASS2(ICAPModXact);
 };
index 05c06c26033a8ab0250d3a823c780f2fbd3d7e1c..16a118074ab72eda44423e04bf97da1fe1601f07 100644 (file)
@@ -112,8 +112,7 @@ u_int8_t  version:
     u_int16_t checksum;         /* IP checksum                    */
     u_int32_t source_ip;
     u_int32_t dest_ip;
-}
-iphdr;
+} iphdr;
 
 /* ICMP header */
 typedef struct icmphdr
@@ -124,8 +123,7 @@ typedef struct icmphdr
     u_int16_t icmp_id;
     u_int16_t icmp_seq;
     u_int32_t timestamp;        /* not part of ICMP, but we need it */
-}
-icmphdr;
+} icmphdr;
 
 #endif  /* _SQUID_MSWIN_ */
 
index f00af90d9e9c2fcc040d04e290f1cd38758cad4d..48b48fd5c5317ceeda506847a580d574a9096bfe 100644 (file)
@@ -126,9 +126,7 @@ public:
     {
         STABH *callback;
         void *data;
-    }
-
-    abort;
+    } abort;
     char *log_url;
     RemovalPolicyNode repl;
     int id;
index 3389313508640321063f67787dc9ebbb66ebe865..c93597e35bf534d1e573802efea75d44bba24be3 100644 (file)
@@ -122,9 +122,7 @@ public:
         bool pending() const;
         STCB *callback_handler;
         void *callback_data;
-    }
-
-    _callback;
+    } _callback;
 };
 
 SQUIDCEXTERN void storeClientCopy(store_client *, StoreEntry *, StoreIOBuffer, STCB *, void *);
index ed01ce6ecb74a7d1ec1aa07423be350be2a1ef3f..022be396989e365ce3f659f1ad56a744d89945e9 100644 (file)
@@ -99,16 +99,12 @@ public:
     {
         STRCB *callback;
         void *callback_data;
-    }
-
-    read;
+    } read;
 
     struct
     {
         unsigned int closing:1;        /* debugging aid */
-    }
-
-    flags;
+    } flags;
 };
 
 StoreIOState::Pointer storeCreate(StoreEntry *, StoreIOState::STFNCB *, StoreIOState::STIOCB *, void *);
index 23af542b5c2ce9522b8fa01c35c7a7c2821a6e53..9c527ce470672d7b08a18b9c7727c10f3b8b3d53 100644 (file)
@@ -174,9 +174,7 @@ public:
         Flags() : selected(0), read_only(0){}
         unsigned int selected:1;
         unsigned int read_only:1;
-    }
-
-    flags;
+    } flags;
     virtual void init() = 0;   /* Initialise the fs */
     virtual void create();     /* Create a new fs */
     virtual void dump(StoreEntry &)const;      /* Dump fs config snippet */
@@ -216,9 +214,7 @@ public:
     struct
     {
         int blksize;
-    }
-
-    fs;
+    } fs;
 };
 
 #endif /* SQUID_SWAPDIR_H */
index 4d381260fa4cdaa0f73c1b8b59636187c02e0720..0dd1f2995c947b28539ad6473af2da4bbd328f62 100644 (file)
@@ -96,9 +96,7 @@ typedef struct
 {
     hash_link hash;
     int n;
-}
-
-fvdb_entry;
+} fvdb_entry;
 static hash_table *via_table = NULL;
 static hash_table *forw_table = NULL;
 static void fvdbInit();
@@ -406,9 +404,7 @@ struct _logformat_token
             char *header;
             char *element;
             char separator;
-        }
-
-        header;
+        } header;
         char *timespec;
     } data;
     unsigned char width;
index 60afe76db30ff5272b566faf4c818ed3972ab532..c1d335d24de04db0a0eab702f6e14348887ae85c 100644 (file)
@@ -65,9 +65,7 @@ public:
 
 unsigned int credentials_ok:
         2;     /*0=unchecked,1=ok,2=failed */
-    }
-
-    flags;
+    } flags;
     BasicAuthQueueNode *auth_queue;
 
 private:
index dd2559b5dd69bb5e5a2aa5e5fb5e1a7440b0c680..e7dd02ec9a016713a6be1294676fdcc6b21346f2 100644 (file)
@@ -39,8 +39,7 @@ typedef struct
     void *data;
     AuthUserRequest *auth_user_request;
     RH *handler;
-}
-authenticateStateData;
+} authenticateStateData;
 #endif
 
 /// \ingroup AuthNegotiateAPI
index b2c01b7cedd10622ddd73793e756c0944a1aad39..38351a77521143edd5ff1c4b7b68acd7df0a6a97 100644 (file)
@@ -30,9 +30,7 @@ typedef struct
     void *data;
     AuthUserRequest *auth_user_request;
     RH *handler;
-}
-
-authenticateStateData;
+} authenticateStateData;
 #endif
 
 class NTLMUser : public AuthUser
index e74aa99085a9abe35a91e396d79773f280eb15fe..95eed124181593f8ceae38be7105299b0076e3f4 100644 (file)
@@ -48,9 +48,7 @@ typedef struct
     int scanned_count;         /* #scanned entries */
     int bad_add_count;         /* #duplicate adds */
     int bad_del_count;         /* #dels with no prior add */
-}
-
-CacheIndex;
+} CacheIndex;
 
 
 typedef struct _CacheEntry
@@ -60,9 +58,7 @@ typedef struct _CacheEntry
     struct _CacheEntry *next;
     /* StoreSwapLogData s; */
     unsigned char key_arr[SQUID_MD5_DIGEST_LENGTH];
-}
-
-CacheEntry;
+} CacheEntry;
 
 
 /* copied from url.c */
index 9e6450322bea8bd847e850e7de54b880b7c6268c..9ebabf9c7a8fad8bb9d9e69782ea1b681893be98 100644 (file)
@@ -57,8 +57,7 @@ typedef struct
     char *action;
     char *user_name;
     char *passwd;
-}
-cachemgrStateData;
+} cachemgrStateData;
 
 static CacheManagerAction *cachemgrFindAction(const char *action);
 static cachemgrStateData *cachemgrParseUrl(const char *url);
index 802b8e4bb01368bab7893b3431a7fe086e89e99e..6cd813c47c582fc54942ef3fc499e1adc74bbc64 100644 (file)
@@ -70,18 +70,14 @@ typedef struct Line
     char *data;
 
     struct Line *next;
-}
-
-Line;
+} Line;
 
 typedef struct EntryAlias
 {
 
     struct EntryAlias *next;
     char *name;
-}
-
-EntryAlias;
+} EntryAlias;
 
 typedef struct Entry
 {
@@ -98,9 +94,7 @@ typedef struct Entry
     int array_flag;
 
     struct Entry *next;
-}
-
-Entry;
+} Entry;
 
 typedef struct TypeDep
 {
index a314d235ef9723c8461c021b2763b6acec12dc53..28eb767f2db25bc20d84054209f6139168146910 100644 (file)
@@ -74,9 +74,7 @@ public:
 unsigned deferred: 1; /* This is a pipelined request waiting for the current object to complete */
 
 unsigned parsed_ok: 1; /* Was this parsed correctly? */
-    }
-
-    flags;
+    } flags;
     bool mayUseConnection() const {return mayUseConnection_;}
 
     void mayUseConnection(bool aBool)
@@ -190,9 +188,7 @@ public:
     struct
     {
         bool readMoreRequests;
-    }
-
-    flags;
+    } flags;
     http_port_list *port;
 
     bool transparent() const;
index a69d011106281c64c8ad0f253f95201c1c88a942..b453e645b71aba80bc577daf01fba46add43406a 100644 (file)
@@ -112,9 +112,7 @@ unsigned storelogiccomplete: 1;
 
 unsigned complete: 1;          /* we have read all we can from upstream */
         bool headersSent;
-    }
-
-    flags;
+    } flags;
     clientStreamNode *ourNode; /* This will go away if/when this file gets refactored some more */
 
 private:
index 3f280e1b495c67ea55d59fc7e2bfc7851fa31b56..9a9c1970622b5f9a64960e1765a65f4ccdd79bd7 100644 (file)
@@ -1144,9 +1144,7 @@ idnsRead(int fd, void *data)
             }
             else {
                 debugs(78, 1, "WARNING: Reply from unknown nameserver " << from << " (retrying..." <<  (squid_curtime-last_warning) << "<=60)" );
-            }
-
-            continue;
+            } continue;
         }
 
         idnsGrokReply(rbuf, len);
index 32dbd790ded3264ad0c753103a0988908c2710d6..86fed6f0fbee57f1fb3f4cc0f10b10d2d4538c71 100644 (file)
@@ -67,8 +67,7 @@ typedef struct
 {
     int id;
     char *page_name;
-}
-ErrorDynamicPageInfo;
+} ErrorDynamicPageInfo;
 
 /* local constant and vars */
 
index 4e717d474a4a6f2b21ab89e9b3004a7cf98a424f..91c25544902159e3ccc69907620832a9078349dd 100644 (file)
@@ -126,9 +126,7 @@ public:
     {
         QUOTE_METHOD_SHELL = 1,
         QUOTE_METHOD_URL
-    }
-
-    quote;
+    } quote;
 
     IPAddress local_addr;
 };
index 40dbcecf8a6eb2dc60464f24ef2fb69cfce66a46..d15149cb43a2f8b4807cf19a942786b3e7d1c63c 100644 (file)
@@ -98,9 +98,7 @@ private:
         unsigned int dont_retry:1;
         unsigned int ftp_pasv_failed:1;
         unsigned int forward_completed:1;
-    }
-
-    flags;
+    } flags;
 #if LINUX_NETFILTER
     IPAddress src;
 #endif
index 58c391436e2d550d90e2cd13caef193ddfcd01c0..ea3c13c26b2b8de41633b1d2d32af66f0e27c462 100644 (file)
@@ -112,9 +112,7 @@ struct _fqdncache_entry
     {
         unsigned int negcached:1;
         unsigned int fromhosts:1;
-    }
-
-    flags;
+    } flags;
 };
 
 /// \ingroup FQDNCacheInternal
@@ -125,8 +123,7 @@ static struct _fqdn_cache_stats
     int hits;
     int misses;
     int negative_hits;
-}
-FqdncacheStats;
+} FqdncacheStats;
 
 /// \ingroup FQDNCacheInternal
 static dlink_list lru_list;
index fdf7feaf50fe02293766638c129776c12ed7919a..927e71c40ea8a28ee0b43325b58da31b9fda404a 100644 (file)
@@ -54,9 +54,7 @@ public:
         int alloc;
         int realloc;
         int collisions;
-    }
-
-    alloc;
+    } alloc;
     int disk_overflows;
     int stripe_overflows;
     int open_mem_hits;
index 0a966a3b0c4911c56d684257fced504ff0613cf4..e44a05f9be817e05cc7560a0b8017100e116b4b8 100644 (file)
@@ -444,9 +444,7 @@ storeCossRebuildFromSwapLog(void *data)
                 storeCossRemove(rb->sd, e);
                 rb->counts.objcount--;
                 rb->counts.cancelcount++;
-            }
-
-            continue;
+            } continue;
         } else {
             x = log(static_cast<double>(++rb->counts.bad_log_op)) / log(10.0);
 
index fa47c99c530cfee7e12f7416a48124b510728614..11d0abd5ce58f307e1f87dcb1c84bfef037b5ff9 100644 (file)
@@ -535,9 +535,7 @@ RebuildState::rebuildFromSwapLog()
                 currentEntry()->release();
                 counts.objcount--;
                 counts.cancelcount++;
-            }
-
-            continue;
+            } continue;
         } else {
             x = ::log(static_cast<double>(++counts.bad_log_op)) / ::log(10.0);
 
@@ -604,9 +602,7 @@ RebuildState::rebuildFromSwapLog()
             } else {
                 debug_trap("commonUfsDirRebuildFromSwapLog: bad condition");
                 debugs(47, 1, "\tSee " << __FILE__ << ":" << __LINE__);
-            }
-
-            continue;
+            } continue;
         } else if (used) {
             /* swapfile in use, not by this URL, log entry is newer */
             /* This is sorta bad: the log entry should NOT be newer at this
index 0d1b96d2277d3268c1148358e05ea81ea7c0c8db..8f6444aac1e1490a07abb1444714c6939bea301f 100644 (file)
@@ -274,9 +274,7 @@ protected:
          * try to close again in the I/O callbacks.
          */
         bool try_closing;
-    }
-
-    flags;
+    } flags;
     link_list *pending_reads;
     link_list *pending_writes;
     void queueRead(char *, size_t, off_t, STRCB *, void *);
index db7c9b96359f1e36a04e3d77c5771c97c7721372..9a6b414737102cb7f3e8e110badcae026404536b 100644 (file)
@@ -169,9 +169,7 @@ public:
         char *last_command;
         char *last_reply;
         int replycode;
-    }
-
-    ctrl;
+    } ctrl;
 
     struct
     {
@@ -180,9 +178,7 @@ public:
         char *host;
         u_short port;
         bool read_pending;
-    }
-
-    data;
+    } data;
 
     struct _ftp_flags flags;
 
@@ -274,8 +270,7 @@ typedef struct
     char *name;
     char *showname;
     char *link;
-}
-ftpListParts;
+} ftpListParts;
 
 /// \ingroup ServerProtocolFTPInternal
 #define FTP_LOGIN_ESCAPED      1
index 9fdd3995be8d26bbd996cfa074a840cf1ba743d5..24ebff5e1c6d18d2e70f00c7859445f716da3c2e 100644 (file)
@@ -136,9 +136,7 @@ typedef struct gopher_ds
     HttpRequest *req;
     FwdState::Pointer fwd;
     char replybuf[BUFSIZ];
-}
-
-GopherStateData;
+} GopherStateData;
 
 static PF gopherStateFree;
 static void gopher_mime_content(MemBuf * mb, const char *name, const char *def);
index 75e2f4842bcd2a32283e9d003531d879d3e473ec..cc08c45d310fb552e68996796335419fbc9980ac 100644 (file)
@@ -77,9 +77,7 @@ struct _helper
         int replies;
         int queue_size;
         int avg_svc_time;
-    }
-
-    stats;
+    } stats;
 };
 
 struct _helper_stateful
@@ -105,9 +103,7 @@ struct _helper_stateful
         int replies;
         int queue_size;
         int avg_svc_time;
-    }
-
-    stats;
+    } stats;
 };
 
 struct _helper_server
index 2d2d9927c12a2383755fea8710646ec8c9401a78..09dff47119ab049236f2e1d4aeb7fe029a6099eb 100644 (file)
@@ -54,9 +54,7 @@ public:
         double rtt;
         int samp;
         int hops;
-    }
-
-    cto;
+    } cto;
 };
 
 /// \bug redundant typedef
index ac7f1b52d68f210d9009e36d449cc44ec9322792..d7acd6fab0b5938fb4bc00ef8cea9c9ed7bb1914 100644 (file)
@@ -46,9 +46,7 @@ typedef struct _IdentClient
     void *callback_data;
 
     struct _IdentClient *next;
-}
-
-IdentClient;
+} IdentClient;
 
 typedef struct _IdentStateData
 {
@@ -60,9 +58,7 @@ typedef struct _IdentStateData
     IPAddress my_peer;
     IdentClient *clients;
     char buf[4096];
-}
-
-IdentStateData;
+} IdentStateData;
 
 static IOCB identReadReply;
 static PF identClose;
index fc56b985baba6037d071f01696837890d584a33a..d8498631343dceb8a03a259f44ec0c90f671f768 100644 (file)
@@ -112,9 +112,7 @@ struct _ipcache_entry
     {
         unsigned int negcached:1;
         unsigned int fromhosts:1;
-    }
-
-    flags;
+    } flags;
 };
 
 /// \ingroup IPCacheInternal
@@ -131,8 +129,7 @@ static struct _ipcache_stats
     int rr_cname;
     int cname_only;
     int invalid;
-}
-IpcacheStats;
+} IpcacheStats;
 
 /// \ingroup IPCacheInternal
 static dlink_list lru_list;
index 3ce6f28e4c50a322e1d9a23f04383a7414a93e6f..434193d121104fa67a73c13cc3a8ec8d66ecb782 100644 (file)
@@ -78,9 +78,7 @@ typedef struct
     char buf[NETDB_REQBUF_SZ];
     int buf_ofs;
     netdb_conn_state_t connstate;
-}
-
-netdbExchangeState;
+} netdbExchangeState;
 
 static hash_table *addr_table = NULL;
 static hash_table *host_table = NULL;
index cb1904f6086048f7732fcd9013365d9cb3d46e53..cc9cc221422b4c540fcea335658095bfcbce602f 100644 (file)
@@ -73,9 +73,7 @@ const char *hier_strings[] =
 static struct
 {
     int timeouts;
-}
-
-PeerStats;
+} PeerStats;
 
 static const char *DirectStr[] =
     {
index b8880f15d58d4c902b02094d04ca7a802f019be6..db8e6902d88c34d1cf0e65a0f134ef1d4ae85476 100644 (file)
@@ -53,9 +53,7 @@ typedef struct
     const char *client_ident;
     const char *method_s;
     RH *handler;
-}
-
-redirectStateData;
+} redirectStateData;
 
 static HLPCB redirectHandleReply;
 static void redirectStateFree(redirectStateData * r);
index 343c47c604b6c843d7f6c197e9c318fcd06fffa1..13fc7e1af3c4e28daa4688c9b8e6a5fa374ca1ba 100644 (file)
@@ -64,9 +64,7 @@ typedef struct
     bool min;
     bool lmfactor;
     bool max;
-}
-
-stale_flags;
+} stale_flags;
 
 /*
  * This enumerated list assigns specific values, ala HTTP/FTP status
index 634966da48964482e5315001569250f70eb414d3..b3128915ee52e28b413d5354a351be57f3d250e2 100644 (file)
@@ -905,19 +905,13 @@ struct _store_check_cachable_hist
         int private_key;
         int too_many_open_files;
         int too_many_open_fds;
-    }
-
-    no;
+    } no;
 
     struct
     {
         int Default;
-    }
-
-    yes;
-}
-
-store_check_cachable_hist;
+    } yes;
+} store_check_cachable_hist;
 
 int
 storeTooManyDiskFilesOpen(void)
index 45bdda3d400aba23865b7581d4ede73cc6a816a9..754ab77cba98df0b16afb2f285c3eca50063db85 100644 (file)
@@ -79,9 +79,7 @@ typedef struct
     int add_coll_count;                /* #accepted entries that collided with existing ones */
     int rej_count;             /* #store entries not accepted to store_digest */
     int rej_coll_count;                /* #not accepted entries that collided with existing ones */
-}
-
-StoreDigestStats;
+} StoreDigestStats;
 
 /* local vars */
 static StoreDigestState sd_state;
index 64d30c2b0c9365c5fae3e9902d7ca8ff480944a4..db0cfc0e17c7ecbe73b367e9a4d4dc63b4d5b310 100644 (file)
@@ -12,12 +12,8 @@ static struct
         int select_fail;
         int create_fail;
         int success;
-    }
-
-    create;
-}
-
-store_io_stats;
+    } create;
+} store_io_stats;
 
 OBJH storeIOStats;
 
index dd8f6df30cb7494ba807f3e94b53229c76473d22..0778cc7482146bf4ccc4ff1d61dd17d74ea5ed78 100644 (file)
@@ -51,9 +51,7 @@ typedef struct
     int total;
     /* number of entries read so far */
     int scanned;
-}
-
-store_rebuild_progress;
+} store_rebuild_progress;
 
 static store_rebuild_progress *RebuildProgress = NULL;
 
index ba12390e222c71985983d9172f6736f9e5bf239d..8d963675c8dc98099c0122990a66b67605700282 100644 (file)
@@ -255,9 +255,7 @@ struct _SquidConfig
         int weight;
         int rebuildwait;
         void *info;
-    }
-
-    Wccp2;
+    } Wccp2;
 #endif
 
 #if USE_ICMP
@@ -289,9 +287,7 @@ struct _SquidConfig
         customlog *accesslogs;
 
         int rotateNumber;
-    }
-
-    Log;
+    } Log;
     char *adminEmail;
     char *EmailFrom;
     char *EmailProgram;
@@ -317,9 +313,7 @@ struct _SquidConfig
         char *ssl_password;
 #endif
 
-    }
-
-    Program;
+    } Program;
 #if USE_DNSSERVERS
 
     int dnsChildren;
@@ -337,9 +331,7 @@ struct _SquidConfig
         char *surrogate_id;
 #endif
 
-    }
-
-    Accel;
+    } Accel;
     char *appendDomain;
     size_t appendDomainLen;
     char *debugOptions;
@@ -358,9 +350,7 @@ struct _SquidConfig
         char *file;
         time_t period;
         u_short port;
-    }
-
-    Announce;
+    } Announce;
 
     struct
     {
@@ -376,9 +366,7 @@ struct _SquidConfig
 #endif
         /* FIXME INET6 : this should really be a CIDR value */
         IPAddress client_netmask;
-    }
-
-    Addrs;
+    } Addrs;
     size_t tcpRcvBufsz;
     size_t udpMaxHitObjsz;
     wordlist *hierarchy_stoplist;
@@ -393,16 +381,12 @@ struct _SquidConfig
         int size;
         int low;
         int high;
-    }
-
-    ipcache;
+    } ipcache;
 
     struct
     {
         int size;
-    }
-
-    fqdncache;
+    } fqdncache;
     int minDirectHops;
     int minDirectRtt;
     cachemgr_passwd *passwd_list;
@@ -414,18 +398,14 @@ struct _SquidConfig
         int64_t maxObjectSize;
         int64_t minObjectSize;
         size_t maxInMemObjSize;
-    }
-
-    Store;
+    } Store;
 
     struct
     {
         int high;
         int low;
         time_t period;
-    }
-
-    Netdb;
+    } Netdb;
 
     struct
     {
@@ -485,9 +465,7 @@ struct _SquidConfig
         int global_internal_static;
         int dns_require_A;
         int debug_override_X;
-    }
-
-    onoff;
+    } onoff;
 
     class ACL *aclList;
 
@@ -527,9 +505,7 @@ struct _SquidConfig
         acl_access *ssl_bump;
 #endif
 
-    }
-
-    accessList;
+    } accessList;
     acl_deny_info_list *denyInfoList;
     authConfig authConfiguration;
 
@@ -542,9 +518,7 @@ struct _SquidConfig
         int epsv_all;
         int sanitycheck;
         int telnet;
-    }
-
-    Ftp;
+    } Ftp;
     refresh_t *Refresh;
 
     struct _cacheSwap
@@ -552,33 +526,25 @@ struct _SquidConfig
         RefCount<class Store> *swapDirs;
         int n_allocated;
         int n_configured;
-    }
-
-    cacheSwap;
+    } cacheSwap;
 
     struct
     {
         char *directory;
         int use_short_names;
-    }
-
-    icons;
+    } icons;
     char *errorDirectory;
 
     struct
     {
         int maxtries;
         int onerror;
-    }
-
-    retry;
+    } retry;
 
     struct
     {
         size_t limit;
-    }
-
-    MemPools;
+    } MemPools;
 #if DELAY_POOLS
 
     DelayConfig Delay;
@@ -592,9 +558,7 @@ struct _SquidConfig
         int icp_min_poll;
         int dns_min_poll;
         int http_min_poll;
-    }
-
-    comm_incoming;
+    } comm_incoming;
     int max_open_disk_fds;
     int uri_whitespace;
     int64_t rangeOffsetLimit;
@@ -607,9 +571,7 @@ struct _SquidConfig
         int ttl;
         unsigned short port;
         char *encode_key;
-    }
-
-    mcast_miss;
+    } mcast_miss;
 #endif
 
     /* one access list per header type we know of */
@@ -627,9 +589,7 @@ struct _SquidConfig
         time_t rewrite_period;
         size_t swapout_chunk_size;
         int rebuild_chunk_percentage;
-    }
-
-    digest;
+    } digest;
 #endif
 #if USE_SSL
 
@@ -637,9 +597,7 @@ struct _SquidConfig
     {
         int unclean_shutdown;
         char *ssl_engine;
-    }
-
-    SSL;
+    } SSL;
 #endif
 
     wordlist *ext_methods;
@@ -649,9 +607,7 @@ struct _SquidConfig
         int high_rptm;
         int high_pf;
         size_t high_memory;
-    }
-
-    warnings;
+    } warnings;
     char *store_dir_select_algorithm;
     int sleep_after_fork;      /* microseconds */
     time_t minimum_expiry_time;        /* seconds */
@@ -671,9 +627,7 @@ struct _SquidConfig
         char *flags;
         acl_access *cert_error;
         SSL_CTX *sslContext;
-    }
-
-    ssl_client;
+    } ssl_client;
 #endif
 
     char *accept_filter;
@@ -686,9 +640,7 @@ struct _SquidConfig2
     {
         int enable_purge;
         int mangle_request_headers;
-    }
-
-    onoff;
+    } onoff;
     uid_t effectiveUserID;
     gid_t effectiveGroupID;
 };
@@ -904,18 +856,14 @@ struct _peer
         time_t last_connect_probe;
         int logged_state;      /* so we can print dead/revived msgs */
         int conn_open;         /* current opened connections */
-    }
-
-    stats;
+    } stats;
 
     struct
     {
         int version;
         int counts[ICP_END+1];
         u_short port;
-    }
-
-    icp;
+    } icp;
 #if USE_HTCP
 
     struct
@@ -923,9 +871,7 @@ struct _peer
         double version;
         int counts[2];
         u_short port;
-    }
-
-    htcp;
+    } htcp;
 #endif
 
     u_short http_port;
@@ -997,9 +943,7 @@ struct _peer
         unsigned int hash;
         double load_multiplier;
         double load_factor;    /* normalized weight value */
-    }
-
-    carp;
+    } carp;
 #endif
 
     char *login;               /* Proxy authorization */
@@ -1245,9 +1189,7 @@ struct _StatCounters
         StatHist reply_svc_time;
         int query_timeouts;
         int times_used;
-    }
-
-    icp;
+    } icp;
 
     struct
     {
index 3b15ab7ca10caab315aac6e585d94290119a74a6..b51301f041b5c5496e00079f5b8539ac1f4a739a 100644 (file)
@@ -45,9 +45,7 @@ typedef struct
     int true_miss_count;
     int false_hit_count;
     int false_miss_count;
-}
-
-CacheQueryStats;
+} CacheQueryStats;
 
 typedef struct _Cache Cache;
 
@@ -72,9 +70,7 @@ typedef struct _CacheEntry
     struct _CacheEntry *next;
     unsigned char key_arr[SQUID_MD5_DIGEST_LENGTH];
     /* storeSwapLogData s; */
-}
-
-CacheEntry;
+} CacheEntry;
 
 /* parsed access log entry */
 
@@ -83,9 +79,7 @@ typedef struct
     cache_key key[SQUID_MD5_DIGEST_LENGTH];
     time_t timestamp;
     short int use_icp;         /* true/false */
-}
-
-RawAccessLogEntry;
+} RawAccessLogEntry;
 
 typedef enum {
     frError = -2, frMore = -1, frEof = 0, frOk = 1
index a2135677dc8ecac0d38caae80563c6c7a4961755..57b7161be30af873f8cefb81d49f586efcbaeb7f 100644 (file)
@@ -46,9 +46,7 @@ typedef struct
 {
     size_t bytes;
     size_t kb;
-}
-
-kb_t;
+} kb_t;
 
 typedef struct _acl_time_data acl_time_data;
 
index 218d4933e22b2a9bb17e371adfbcbc68cf901f0f..ad5f74012f3f69b19078396645ff9b63f54503e5 100644 (file)
@@ -88,12 +88,8 @@ typedef struct
     struct
     {
         int cached;
-    }
-
-    flags;
-}
-
-url_entry;
+    } flags;
+} url_entry;
 
 static STCB urnHandleReply;
 static url_entry *urnParseReply(const char *inbuf, const HttpRequestMethod&);
index 1704194b95a3ef5b032379c97f3f3ca183101b71..4ad72dd056062719cc182b4659cceb1ecd517521 100644 (file)
@@ -149,9 +149,7 @@ typedef struct
     char *user_name;
     char *passwd;
     char *pub_auth;
-}
-
-cachemgr_request;
+} cachemgr_request;
 
 /*
  * Debugging macros (info goes to error_log on your web server)