[4.1] 7e471b3 remove duplicate init

PÃ¥l Hermunn Johansen hermunn at varnish-software.com
Fri Sep 9 13:01:03 CEST 2016


commit 7e471b30d531db293c1fdb54bf62f25649098b70
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Sat Jul 23 19:09:14 2016 +0200

    remove duplicate init

diff --git a/bin/varnishhist/varnishhist.c b/bin/varnishhist/varnishhist.c
index a8eec87..8d0eeee 100644
--- a/bin/varnishhist/varnishhist.c
+++ b/bin/varnishhist/varnishhist.c
@@ -189,8 +189,6 @@ update(void)
 	erase();
 
 	/* Draw horizontal axis */
-	w = COLS / hist_range;
-	n = w * hist_range;
 	for (i = 0; i < n; ++i)
 		(void)mvaddch(LINES - 2, i, '-');
 	for (k = 0, l = hist_low; k < hist_range; ++k, ++l) {



More information about the varnish-commit mailing list