[master] bf1fd86 should ignore return value of usleep()

Nils Goroll nils.goroll at uplex.de
Fri Aug 29 18:09:13 CEST 2014


commit bf1fd868925020d3213e8915baa8978bf6fdcaa2
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Fri Aug 29 18:09:09 2014 +0200

    should ignore return value of usleep()

diff --git a/bin/varnishstat/varnishstat.c b/bin/varnishstat/varnishstat.c
index 2f41daa..f5153b4 100644
--- a/bin/varnishstat/varnishstat.c
+++ b/bin/varnishstat/varnishstat.c
@@ -333,7 +333,7 @@ main(int argc, char * const *argv)
 		// end of output block marker.
 		printf("\n");
 
-		usleep(delay * 1e6);
+		(void)usleep(delay * 1e6);
 	}
 	exit(0);
 }



More information about the varnish-commit mailing list