From: wessels <> Date: Thu, 17 Jul 1997 02:55:42 +0000 (+0000) Subject: remove debugging in parse_peer() X-Git-Tag: SQUID_3_0_PRE1~4877 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e481c2dc8c8a55ccab2c1261d353e01ac52f65c3;p=thirdparty%2Fsquid.git remove debugging in parse_peer() --- diff --git a/src/cache_cf.cc b/src/cache_cf.cc index 9f8016b3d2..2a516e2515 100644 --- a/src/cache_cf.cc +++ b/src/cache_cf.cc @@ -1,5 +1,5 @@ /* - * $Id: cache_cf.cc,v 1.210 1997/07/16 20:31:57 wessels Exp $ + * $Id: cache_cf.cc,v 1.211 1997/07/16 20:55:42 wessels Exp $ * * DEBUG: section 3 Configuration File Parsing * AUTHOR: Harvest Derived @@ -486,24 +486,16 @@ parse_peer(peer ** head) peer *p; int i; ushortlist *u; - const char *me = getMyHostname(); -debug(0,0)("this be cache_peer()\n"); -debug(0,0)("%s\n", strtok(NULL, null_string)); + const char *me = getMyHostname();; p = xcalloc(1, sizeof(peer)); p->http_port = CACHE_HTTP_PORT; p->icp_port = CACHE_ICP_PORT; p->weight = 1; - token = strtok(NULL, w_space); -debug(0,0)("token = %p\n", token); - if (token == NULL) { - debug(0,0)("bad hostname\n"); + if ((token = strtok(NULL, w_space)) == NULL) self_destruct(); - } p->host = xstrdup(token); - if ((token = strtok(NULL, w_space)) == NULL) { - debug(0, 0) ("bad type\n"); + if ((token = strtok(NULL, w_space)) == NULL) self_destruct(); - } p->type = parseNeighborType(token); GetInteger(i); p->http_port = (u_short) i;