From: wessels <> Date: Fri, 6 Oct 2000 11:13:04 +0000 (+0000) Subject: gindent -br -ce -i4 -ci4 -l80 -nlp -npcs -npsl -d0 -sc -di0 -psl X-Git-Tag: SQUID_3_0_PRE1~1822 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f913cf126163da6c8d35b6c8fb7c560ad33361a;p=thirdparty%2Fsquid.git gindent -br -ce -i4 -ci4 -l80 -nlp -npcs -npsl -d0 -sc -di0 -psl --- diff --git a/src/repl/lru/store_repl_lru.cc b/src/repl/lru/store_repl_lru.cc index 3f2859768f..19d377b6d5 100644 --- a/src/repl/lru/store_repl_lru.cc +++ b/src/repl/lru/store_repl_lru.cc @@ -1,6 +1,6 @@ /* - * $Id: store_repl_lru.cc,v 1.2 2000/10/06 05:12:35 wessels Exp $ + * $Id: store_repl_lru.cc,v 1.3 2000/10/06 05:13:04 wessels Exp $ * * DEBUG: section ? LRU Removal policy * AUTHOR: Henrik Nordstrom @@ -43,9 +43,9 @@ struct _LruPolicyData { dlink_list list; int count; int nwalkers; - enum heap_entry_type - { TYPE_UNKNOWN = 0, TYPE_STORE_ENTRY, TYPE_STORE_MEM } - type; + enum heap_entry_type { + TYPE_UNKNOWN = 0, TYPE_STORE_ENTRY, TYPE_STORE_MEM + } type; }; /* Hack to avoid having to remember the RemovalPolicyNode location. @@ -69,8 +69,7 @@ repl_guessType(StoreEntry * entry, RemovalPolicyNode * node) } typedef struct _LruNode LruNode; -struct _LruNode -{ +struct _LruNode { /* Note: the dlink_node MUST be the first member of the LruNode * structure. This member is later pointer typecasted to LruNode *. */ @@ -129,8 +128,7 @@ lru_referenced(RemovalPolicy * policy, const StoreEntry * entry, /** RemovalPolicyWalker **/ typedef struct _LruWalkData LruWalkData; -struct _LruWalkData -{ +struct _LruWalkData { LruNode *current; }; @@ -178,8 +176,7 @@ lru_walkInit(RemovalPolicy * policy) /** RemovalPurgeWalker **/ typedef struct _LruPurgeData LruPurgeData; -struct _LruPurgeData -{ +struct _LruPurgeData { LruNode *current; LruNode *start; }; @@ -262,7 +259,7 @@ lru_free(RemovalPolicy * policy) } RemovalPolicy * -createRemovalPolicy_lru(wordlist *args) +createRemovalPolicy_lru(wordlist * args) { RemovalPolicy *policy; LruPolicyData *lru_data; @@ -292,4 +289,3 @@ createRemovalPolicy_lru(wordlist *args) nr_lru_policies += 0; return policy; } -