]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
hier_strings[] had too many members
authorwessels <>
Tue, 4 Nov 1997 13:16:52 +0000 (13:16 +0000)
committerwessels <>
Tue, 4 Nov 1997 13:16:52 +0000 (13:16 +0000)
src/peer_select.cc

index 80d8e574aac6884565db5e6409d348c5e938312e..b30117cd18550b637d6398898df8bf5f059f1ede 100644 (file)
@@ -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