r2978 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Sun Jul 20 13:44:29 CEST 2008


Author: phk
Date: 2008-07-20 13:44:29 +0200 (Sun, 20 Jul 2008)
New Revision: 2978

Modified:
   trunk/varnish-cache/bin/varnishd/cache_panic.c
Log:
Ignore a couple of return values



Modified: trunk/varnish-cache/bin/varnishd/cache_panic.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_panic.c	2008-07-20 11:40:30 UTC (rev 2977)
+++ trunk/varnish-cache/bin/varnishd/cache_panic.c	2008-07-20 11:44:29 UTC (rev 2978)
@@ -231,7 +231,7 @@
 		l = sizeof(panicstr);
 	memcpy(p, panicstr, l);
 	if (params->diag_bitmap & 0x4000)
-		fputs(panicstr, stderr);
+		(void)fputs(panicstr, stderr);
 		
 #ifdef HAVE_ABORT2
 	if (params->diag_bitmap & 0x8000) {
@@ -245,7 +245,7 @@
 	}
 #endif
 	if (params->diag_bitmap & 0x1000)
-		kill(getpid(), SIGUSR1);
+		(void)kill(getpid(), SIGUSR1);
 	else
 		abort();
 }




More information about the varnish-commit mailing list