From: wessels <> Date: Tue, 4 Jan 2000 02:32:33 +0000 (+0000) Subject: Removed 'entry' as a local variable in peerGetSomeNeighborReplies because X-Git-Tag: SQUID_3_0_PRE1~2098 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4c5a1592884e3f7e7f1c103b28820af0e0f0d6e8;p=thirdparty%2Fsquid.git Removed 'entry' as a local variable in peerGetSomeNeighborReplies because its only used in an assertion. If we disable assertions with NODEBUG then we get 'unused variable' warnings from the compiler. --- diff --git a/src/peer_select.cc b/src/peer_select.cc index ddc4097a13..67d0b3dc2c 100644 --- a/src/peer_select.cc +++ b/src/peer_select.cc @@ -1,6 +1,6 @@ /* - * $Id: peer_select.cc,v 1.102 1999/12/30 17:36:45 wessels Exp $ + * $Id: peer_select.cc,v 1.103 2000/01/03 19:32:33 wessels Exp $ * * DEBUG: section 44 Peer Selection Algorithm * AUTHOR: Duane Wessels @@ -359,11 +359,10 @@ peerGetSomeNeighbor(ps_state * ps) static void peerGetSomeNeighborReplies(ps_state * ps) { - StoreEntry *entry = ps->entry; request_t *request = ps->request; peer *p = NULL; hier_code code = HIER_NONE; - assert(entry->ping_status == PING_WAITING); + assert(ps->entry->ping_status == PING_WAITING); assert(ps->direct != DIRECT_YES); if (peerCheckNetdbDirect(ps)) { code = CLOSEST_DIRECT;