r1357 - in branches/1.0: . bin/varnishd

des at projects.linpro.no des at projects.linpro.no
Thu Apr 19 16:51:22 CEST 2007


Author: des
Date: 2007-04-19 16:51:22 +0200 (Thu, 19 Apr 2007)
New Revision: 1357

Modified:
   branches/1.0/
   branches/1.0/bin/varnishd/mgt_vcc.c
Log:
 r37090 at cat (orig r1314):  phk | 2007-04-19 11:34:45 +0200
 Standards compliance: fputs(3) returns non-negative on success.
 
 



Property changes on: branches/1.0
___________________________________________________________________
Name: svk:merge
   - d4fa192b-c00b-0410-8231-f00ffab90ce4:/trunk/varnish-cache:1313
   + d4fa192b-c00b-0410-8231-f00ffab90ce4:/trunk/varnish-cache:1314

Modified: branches/1.0/bin/varnishd/mgt_vcc.c
===================================================================
--- branches/1.0/bin/varnishd/mgt_vcc.c	2007-04-19 14:51:21 UTC (rev 1356)
+++ branches/1.0/bin/varnishd/mgt_vcc.c	2007-04-19 14:51:22 UTC (rev 1357)
@@ -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