]> err.no Git - varnish/commitdiff
Properly ignore the return value from cli_readres(), we get it in status.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Sun, 21 Dec 2008 18:40:35 +0000 (18:40 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Sun, 21 Dec 2008 18:40:35 +0000 (18:40 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3495 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/mgt_cli.c

index 725d474179d78ba6f805c6c412049caefb871cf2..c8c12d2165ced493a9ffdbcc41837bf980893bca 100644 (file)
@@ -189,7 +189,7 @@ mgt_cli_askchild(unsigned *status, char **resp, const char *fmt, ...) {
                return (CLIS_COMMS);
        }
 
-       i = cli_readres(cli_i, &u, resp, params->cli_timeout);
+       (void)cli_readres(cli_i, &u, resp, params->cli_timeout);
        if (status != NULL)
                *status = u;
        return (u == CLIS_OK ? 0 : u);
@@ -270,7 +270,7 @@ mgt_cli_vlu(void *priv, const char *p)
                        xxxassert(i == strlen(p));
                        i = write(cli_o, "\n", 1);
                        xxxassert(i == 1);
-                       i = cli_readres(cli_i, &u, &q, params->cli_timeout);
+                       (void)cli_readres(cli_i, &u, &q, params->cli_timeout);
                        cli_result(cp->cli, u);
                        cli_out(cp->cli, "%s", q);
                        free(q);