Commit 9902494d authored by Lasse Karstensen's avatar Lasse Karstensen

cleanup

parent 15e4f620
...@@ -490,23 +490,19 @@ collect_client(struct logline *lp, enum VSL_tag_e tag, unsigned spec, ...@@ -490,23 +490,19 @@ collect_client(struct logline *lp, enum VSL_tag_e tag, unsigned spec,
case SLT_VCL_Log: case SLT_VCL_Log:
if(!lp->active) if(!lp->active)
break; break;
//lp->log1 = trimline(ptr, end);
// Extract key, value from logline.
split = strchr(ptr, ':'); split = strchr(ptr, ':');
if (split == NULL) if (split == NULL)
break; break;
struct hdr *h; struct hdr *h;
h = malloc(sizeof(struct hdr)); h = malloc(sizeof(struct hdr));
// XXX: what is this AN() business? probably important. :)
AN(h); AN(h);
AN(split); AN(split);
h->key = trimline(ptr, split); h->key = trimline(ptr, split);
h->value = trimline(split+1, end); h->value = trimline(split+1, end);
// put onto the linked list that is log entries.
VTAILQ_INSERT_HEAD(&lp->vcl_log, h, list); VTAILQ_INSERT_HEAD(&lp->vcl_log, h, list);
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment