r2408 - trunk/varnish-cache/lib/libvarnish

phk at projects.linpro.no phk at projects.linpro.no
Wed Jan 30 11:15:07 CET 2008


Author: phk
Date: 2008-01-30 11:15:07 +0100 (Wed, 30 Jan 2008)
New Revision: 2408

Modified:
   trunk/varnish-cache/lib/libvarnish/time.c
Log:
Silence Flexelint


Modified: trunk/varnish-cache/lib/libvarnish/time.c
===================================================================
--- trunk/varnish-cache/lib/libvarnish/time.c	2008-01-30 10:12:58 UTC (rev 2407)
+++ trunk/varnish-cache/lib/libvarnish/time.c	2008-01-30 10:15:07 UTC (rev 2408)
@@ -93,8 +93,8 @@
 	time_t tt;
 
 	tt = (time_t) t;
-	gmtime_r(&tt, &tm);
-	strftime(p, 30, "%a, %d %b %Y %T GMT", &tm);
+	(void)gmtime_r(&tt, &tm);
+	AN(strftime(p, 30, "%a, %d %b %Y %T GMT", &tm));
 }
 
 /* XXX: add statistics ? */




More information about the varnish-commit mailing list