[4.0] 31ebc99 should ignore return value of usleep()

Lasse Karstensen lkarsten at varnish-software.com
Mon Sep 22 16:38:25 CEST 2014


commit 31ebc99ef9eb7c1b27b776dc5f379ef25909c684
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