From: wessels <> Date: Tue, 4 Nov 1997 13:16:52 +0000 (+0000) Subject: hier_strings[] had too many members X-Git-Tag: SQUID_3_0_PRE1~4579 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9bdbfe33c46a3fe08971da057cb6ba1d5fda5009;p=thirdparty%2Fsquid.git hier_strings[] had too many members --- diff --git a/src/peer_select.cc b/src/peer_select.cc index 80d8e574aa..b30117cd18 100644 --- a/src/peer_select.cc +++ b/src/peer_select.cc @@ -1,6 +1,6 @@ /* - * $Id: peer_select.cc,v 1.30 1997/11/03 22:43:17 wessels Exp $ + * $Id: peer_select.cc,v 1.31 1997/11/04 06:16:52 wessels Exp $ * * DEBUG: section 44 Peer Selection Algorithm * AUTHOR: Duane Wessels @@ -48,8 +48,6 @@ const char *hier_strings[] = "SOURCE_FASTEST", "SIBLING_UDP_HIT_OBJ", "PARENT_UDP_HIT_OBJ", - "PASSTHROUGH_PARENT", - "SSL_PARENT_MISS", "ROUNDROBIN_PARENT", "INVALID CODE" }; @@ -347,6 +345,7 @@ void peerSelectInit(void) { memset(&PeerStats, '\0', sizeof(PeerStats)); + assert(sizeof(hier_strings) == (HIER_MAX + 1) * sizeof(char *)); } static void