r5392 - in trunk/varnish-cache/bin: varnishhist varnishsizes

phk at varnish-cache.org phk at varnish-cache.org
Mon Oct 4 11:00:53 CEST 2010


Author: phk
Date: 2010-10-04 11:00:53 +0200 (Mon, 04 Oct 2010)
New Revision: 5392

Modified:
   trunk/varnish-cache/bin/varnishhist/varnishhist.c
   trunk/varnish-cache/bin/varnishsizes/varnishsizes.c
Log:
Explicitly throw away return values we don't care about.



Modified: trunk/varnish-cache/bin/varnishhist/varnishhist.c
===================================================================
--- trunk/varnish-cache/bin/varnishhist/varnishhist.c	2010-10-02 21:23:03 UTC (rev 5391)
+++ trunk/varnish-cache/bin/varnishhist/varnishhist.c	2010-10-04 09:00:53 UTC (rev 5392)
@@ -110,9 +110,9 @@
 	w = COLS / HIST_RANGE;
 	n = w * HIST_RANGE;
 	for (i = 0; i < n; ++i)
-		mvaddch(LINES - 2, i, '-');
+		(void)mvaddch(LINES - 2, i, '-');
 	for (i = 0, j = HIST_LOW; i < HIST_RANGE; ++i, ++j) {
-		mvaddch(LINES - 2, w * i, '+');
+		(void)mvaddch(LINES - 2, w * i, '+');
 		mvprintw(LINES - 1, w * i, "|1e%d", j);
 	}
 
@@ -139,9 +139,9 @@
 	/* show them */
 	for (i = 0; i < n; ++i) {
 		for (j = 0; j < bm[i] / scale; ++j)
-			mvaddch(LINES - 3 - j, i, '#');
+			(void)mvaddch(LINES - 3 - j, i, '#');
 		for (; j < (bm[i] + bh[i]) / scale; ++j)
-			mvaddch(LINES - 3 - j, i, '|');
+			(void)mvaddch(LINES - 3 - j, i, '|');
 	}
 
 	refresh();

Modified: trunk/varnish-cache/bin/varnishsizes/varnishsizes.c
===================================================================
--- trunk/varnish-cache/bin/varnishsizes/varnishsizes.c	2010-10-02 21:23:03 UTC (rev 5391)
+++ trunk/varnish-cache/bin/varnishsizes/varnishsizes.c	2010-10-04 09:00:53 UTC (rev 5392)
@@ -110,9 +110,9 @@
 	w = COLS / HIST_RANGE;
 	n = w * HIST_RANGE;
 	for (i = 0; i < n; ++i)
-		mvaddch(LINES - 2, i, '-');
+		(void)mvaddch(LINES - 2, i, '-');
 	for (i = 0, j = HIST_LOW; i < HIST_RANGE; ++i, ++j) {
-		mvaddch(LINES - 2, w * i, '+');
+		(void)mvaddch(LINES - 2, w * i, '+');
 		mvprintw(LINES - 1, w * i, "|1e%d", j);
 	}
 
@@ -139,9 +139,9 @@
 	/* show them */
 	for (i = 0; i < n; ++i) {
 		for (j = 0; j < bm[i] / scale; ++j)
-			mvaddch(LINES - 3 - j, i, '#');
+			(void)mvaddch(LINES - 3 - j, i, '#');
 		for (; j < (bm[i] + bh[i]) / scale; ++j)
-			mvaddch(LINES - 3 - j, i, '|');
+			(void)mvaddch(LINES - 3 - j, i, '|');
 	}
 
 	refresh();




More information about the varnish-commit mailing list