[master] 2262b6a Rename a variable to get rid of 'shadows global declaration' warning

Martin Blix Grydeland martin at varnish-cache.org
Wed May 15 15:47:19 CEST 2013


commit 2262b6a96e0c8e816fbdf14bc70703504e6e63cc
Author: Martin Blix Grydeland <martin at varnish-software.com>
Date:   Wed May 15 15:47:12 2013 +0200

    Rename a variable to get rid of 'shadows global declaration' warning

diff --git a/bin/varnishstat/varnishstat_curses.c b/bin/varnishstat/varnishstat_curses.c
index a2bf8a3..6fc7c8a 100644
--- a/bin/varnishstat/varnishstat_curses.c
+++ b/bin/varnishstat/varnishstat_curses.c
@@ -841,7 +841,7 @@ void
 do_curses(struct VSM_data *vd, int delay)
 {
 	struct pollfd pollfd;
-	long timeout;
+	long t;
 	int ch;
 	double now;
 	struct VSM_fantom f_main, f_mgt, f_iter;
@@ -885,9 +885,9 @@ do_curses(struct VSM_data *vd, int delay)
 		if (redraw)
 			draw_screen();
 
-		timeout = (t_sample + interval - now) * 1000;
-		if (timeout > 0)
-			(void)poll(&pollfd, 1, timeout);
+		t = (t_sample + interval - now) * 1000;
+		if (t > 0)
+			(void)poll(&pollfd, 1, t);
 
 		switch (ch = wgetch(w_status)) {
 		case ERR:



More information about the varnish-commit mailing list