From: phk Date: Thu, 19 Apr 2007 09:34:45 +0000 (+0000) Subject: Standards compliance: fputs(3) returns non-negative on success. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=484fe2bd1e3e80d3996b9eeee37cd2f3c2317b57;p=varnish Standards compliance: fputs(3) returns non-negative on success. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1314 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/mgt_vcc.c b/varnish-cache/bin/varnishd/mgt_vcc.c index d7156f89..e01e97d2 100644 --- a/varnish-cache/bin/varnishd/mgt_vcc.c +++ b/varnish-cache/bin/varnishd/mgt_vcc.c @@ -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));