From 484fe2bd1e3e80d3996b9eeee37cd2f3c2317b57 Mon Sep 17 00:00:00 2001 From: phk Date: Thu, 19 Apr 2007 09:34:45 +0000 Subject: [PATCH] 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 --- varnish-cache/bin/varnishd/mgt_vcc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- 2.39.5