[master] e71ca0c Remove code that was added by mistake and is breaking the build

Martin Blix Grydeland martin at varnish-cache.org
Wed Oct 2 17:10:20 CEST 2013


commit e71ca0cb7174ec864980a8136a3d1470a2e1393a
Author: Martin Blix Grydeland <martin at varnish-software.com>
Date:   Wed Oct 2 17:09:40 2013 +0200

    Remove code that was added by mistake and is breaking the build

diff --git a/bin/varnishstat/varnishstat_curses.c b/bin/varnishstat/varnishstat_curses.c
index a355918..5cf30a5 100644
--- a/bin/varnishstat/varnishstat_curses.c
+++ b/bin/varnishstat/varnishstat_curses.c
@@ -258,7 +258,6 @@ build_pt_list_cb(void *priv, const struct VSC_point *vpt)
 	struct pt_priv *pt_priv;
 	struct pt *pt;
 	char buf[128];
-	size_t l;
 
 	if (vpt == NULL)
 		return (0);
@@ -291,7 +290,6 @@ build_pt_list_cb(void *priv, const struct VSC_point *vpt)
 	pt->key = strdup(buf);
 	AN(pt->key);
 
-	l = sizeof buf;
 	*buf = '\0';
 	if (strcmp(vpt->section->type, "")) {
 		strncat(buf, vpt->section->type, sizeof buf - strlen(buf) - 1);



More information about the varnish-commit mailing list