[3.0] 9902494 cleanup

Lasse Karstensen lkarsten at varnish-cache.org
Thu Nov 3 19:02:17 CET 2011


commit 9902494d3579e29637e0952925904232dfc95e31
Author: Lasse Karstensen <lasse at varnish-software.com>
Date:   Fri Oct 28 14:32:36 2011 +0200

    cleanup

diff --git a/bin/varnishncsa/varnishncsa.c b/bin/varnishncsa/varnishncsa.c
index 9a047f9..dbde1b4 100644
--- a/bin/varnishncsa/varnishncsa.c
+++ b/bin/varnishncsa/varnishncsa.c
@@ -490,23 +490,19 @@ collect_client(struct logline *lp, enum VSL_tag_e tag, unsigned spec,
 	case SLT_VCL_Log:
 		if(!lp->active)
 			break;
- 		//lp->log1 = trimline(ptr, end);
 
-		// Extract key, value from logline.
 		split = strchr(ptr, ':');
 		if (split == NULL)
 			break;
 
 		struct hdr *h;
 		h = malloc(sizeof(struct hdr));
-		// XXX: what is this AN() business? probably important. :)
 		AN(h);
 		AN(split);
 
 		h->key = trimline(ptr, split);
 		h->value = trimline(split+1, end);
 
-		// put onto the linked list that is log entries.
 		VTAILQ_INSERT_HEAD(&lp->vcl_log, h, list);
 		break;
 



More information about the varnish-commit mailing list