]> err.no Git - varnish/commitdiff
Standards compliance: fputs(3) returns non-negative on success.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 19 Apr 2007 09:34:45 +0000 (09:34 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 19 Apr 2007 09:34:45 +0000 (09:34 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1314 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/mgt_vcc.c

index d7156f8976870b3a86379015bbecbb328c81ef23..e01e97d2840da9b65de8ac4a2bfa54bd58c2a0fd 100644 (file)
@@ -144,7 +144,7 @@ mgt_CallCc(const char *source, struct vsb *sb)
        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));