r2962 - trunk/varnish-cache/lib/libvarnish

phk at projects.linpro.no phk at projects.linpro.no
Sat Jul 19 13:43:51 CEST 2008


Author: phk
Date: 2008-07-19 13:43:51 +0200 (Sat, 19 Jul 2008)
New Revision: 2962

Modified:
   trunk/varnish-cache/lib/libvarnish/cli_common.c
Log:
Explicitly silence three FlexeLint complaints



Modified: trunk/varnish-cache/lib/libvarnish/cli_common.c
===================================================================
--- trunk/varnish-cache/lib/libvarnish/cli_common.c	2008-07-19 11:38:31 UTC (rev 2961)
+++ trunk/varnish-cache/lib/libvarnish/cli_common.c	2008-07-19 11:43:51 UTC (rev 2962)
@@ -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 @@
 {
 
 	if (cli != NULL)
-		cli->result = res;
+		cli->result = res;	/*lint !e64 type mismatch */
 	else
 		printf("CLI result = %d\n", res);
 }
@@ -97,7 +98,7 @@
 					 */
 
 	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);




More information about the varnish-commit mailing list