r1314 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Thu Apr 19 11:34:45 CEST 2007


Author: phk
Date: 2007-04-19 11:34:45 +0200 (Thu, 19 Apr 2007)
New Revision: 1314

Modified:
   trunk/varnish-cache/bin/varnishd/mgt_vcc.c
Log:
Standards compliance: fputs(3) returns non-negative on success.



Modified: trunk/varnish-cache/bin/varnishd/mgt_vcc.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/mgt_vcc.c	2007-04-11 09:16:13 UTC (rev 1313)
+++ trunk/varnish-cache/bin/varnishd/mgt_vcc.c	2007-04-19 09:34:45 UTC (rev 1314)
@@ -144,7 +144,7 @@
 	fs = fdopen(sfd, "r+");
 	assert(fs != NULL);
 
-	if (fputs(source, fs) || fflush(fs)) {
+	if (fputs(source, fs) < 0 || fflush(fs)) {
 		vsb_printf(sb,
 		    "Write error to C source file: %s\n",
 		    strerror(errno));




More information about the varnish-commit mailing list