[master] 84f098e Get rid of unused variable, fixes compilation problem with newer gcc
Tollef Fog Heen
tfheen at varnish-cache.org
Mon Jan 9 14:00:49 CET 2012
commit 84f098e0b70a7aca500fd8969929438c821bd392
Author: Tollef Fog Heen <tfheen at varnish-software.com>
Date: Mon Jan 9 14:00:30 2012 +0100
Get rid of unused variable, fixes compilation problem with newer gcc
diff --git a/bin/varnishstat/varnishstat_curses.c b/bin/varnishstat/varnishstat_curses.c
index 3a672e1..5997096 100644
--- a/bin/varnishstat/varnishstat_curses.c
+++ b/bin/varnishstat/varnishstat_curses.c
@@ -145,7 +145,6 @@ do_curses(struct VSM_data *vd, const struct VSC_C_main *VSC_C_main,
time_t rt;
int ch, line;
struct pt *pt;
- double act, lact;
(void)initscr();
AC(raw());
@@ -167,17 +166,12 @@ do_curses(struct VSM_data *vd, const struct VSC_C_main *VSC_C_main,
lt = 0;
lhit = 0;
lmiss = 0;
- lact = 0;
while (1) {
/*
* Break to outher loop if we need to re-read file.
* Only check if it looks like nothing is happening.
*/
- act = VSC_C_main->cache_hit +
- VSC_C_main->cache_miss + 1;
- lact = act;
-
AZ(gettimeofday(&tv, NULL));
tt = tv.tv_usec * 1e-6 + tv.tv_sec;
lt = tt - lt;
More information about the varnish-commit
mailing list