[4.0] 367f8b5 Don't trigger name shadows global warning

Martin Blix Grydeland martin at varnish-software.com
Thu Mar 13 10:24:22 CET 2014


commit 367f8b5160812b39b4b13681e9f106a5f01dd688
Author: Martin Blix Grydeland <martin at varnish-software.com>
Date:   Wed Jan 29 11:32:30 2014 +0100

    Don't trigger name shadows global warning

diff --git a/bin/varnishtop/varnishtop.c b/bin/varnishtop/varnishtop.c
index e79f682..3392ce1 100644
--- a/bin/varnishtop/varnishtop.c
+++ b/bin/varnishtop/varnishtop.c
@@ -174,7 +174,7 @@ accumulate(struct VSL_data *vsl, struct VSL_transaction * const pt[],
 }
 
 static void
-update(const struct VSM_data *vd, int period)
+update(const struct VSM_data *vd, int p)
 {
 	struct top *tp, *tp2;
 	int l, len;
@@ -189,7 +189,7 @@ update(const struct VSM_data *vd, int period)
 	last = now;
 
 	l = 1;
-	if (n < period)
+	if (n < p)
 		n++;
 	AC(erase());
 	AC(mvprintw(0, 0, "%*s", COLS - 1, VSM_Name(vd)));



More information about the varnish-commit mailing list