lib/libvarnish/vcli_serve.c
void
VCLI_JSON_begin(struct cli *cli, unsigned ver, const char * const * av)
{
	int i;

	CHECK_OBJ_NOTNULL(cli, CLI_MAGIC);
	VCLI_Out(cli, "[ %u, [", ver);
	for (i = 1; av[i] != NULL; i++) {
		VCLI_JSON_str(cli, av[i]);
		if (av[i + 1] != NULL)
			VCLI_Out(cli, ", ");
	}
	VCLI_Out(cli, "], %.3f", VTIM_real());
	VSB_indent(cli->sb, 2);
}
/*lint -e{818} cli could be const */
e{818} cli could be const
e { 818 } cli could be const
void
VCLI_JSON_begin(struct cli *cli, unsigned ver, const char * const * av)
{
	int i;
	CHECK_OBJ_NOTNULL(cli, CLI_MAGIC);
	VCLI_Out(cli, "[ %u, [", ver);
	for (i = 1; av[i] != NULL; i++) {
		VCLI_JSON_str(cli, av[i]);
		if (av[i + 1] != NULL)
			VCLI_Out(cli, ", ");
	}
	VCLI_Out(cli, "], %.3f", VTIM_real());
	VSB_indent(cli->sb, 2);
}
void VCLI_JSON_begin ( struct cli * cli , unsigned ver , const char * const * av ) { int i ; CHECK_OBJ_NOTNULL ( cli , CLI_MAGIC ) ; VCLI_Out ( cli , " " , ver ) ; for ( i = 1 ; av [ i ] != NULL ; i ++ ) { VCLI_JSON_str ( cli , av [ i ] ) ; if ( av [ i + 1 ] != NULL ) VCLI_Out ( cli , " " ) ; } VCLI_Out ( cli , " " , VTIM_real ( ) ) ; VSB_indent ( cli -> sb , 2 ) ; }
lint -e{818} cli could be const
lint - e { 818 } cli could be const