From 9ead8e5ac4c06b832b540a4e5ce353971fcb0834 Mon Sep 17 00:00:00 2001 From: phk Date: Sat, 19 Jul 2008 11:43:51 +0000 Subject: [PATCH] Explicitly silence three FlexeLint complaints git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2962 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/lib/libvarnish/cli_common.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/varnish-cache/lib/libvarnish/cli_common.c b/varnish-cache/lib/libvarnish/cli_common.c index 29605ffc..dd8d6d92 100644 --- a/varnish-cache/lib/libvarnish/cli_common.c +++ b/varnish-cache/lib/libvarnish/cli_common.c @@ -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); -- 2.39.5