]> err.no Git - varnish/commitdiff
Explicitly silence three FlexeLint complaints
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Sat, 19 Jul 2008 11:43:51 +0000 (11:43 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Sat, 19 Jul 2008 11:43:51 +0000 (11:43 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2962 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/lib/libvarnish/cli_common.c

index 29605ffc057cd659a758ed79c38710f245d36595..dd8d6d9237918a413c2bd77bc790f1aa5a023579 100644 (file)
@@ -54,6 +54,7 @@
 #include "cli_priv.h"
 #include "cli_common.h"
 
+/*lint -e{818} cli could be const */
 void
 cli_out(struct cli *cli, const char *fmt, ...)
 {
@@ -72,7 +73,7 @@ cli_result(struct cli *cli, unsigned res)
 {
 
        if (cli != NULL)
-               cli->result = res;
+               cli->result = res;      /*lint !e64 type mismatch */
        else
                printf("CLI result = %d\n", res);
 }
@@ -97,7 +98,7 @@ cli_writeres(int fd, const struct cli *cli)
                                         */
 
        assert(cli->result >= 100);
-       assert(cli->result <= 999);
+       assert(cli->result <= 999);     /*lint !e650 const out of range */
        i = snprintf(res, sizeof res,
            "%-3d %-8d\n", cli->result, vsb_len(cli->sb));
        assert(i == CLI_LINE0_LEN);