Skip to content
Permalink
Browse files

Don't replicate existing default code.

  • Loading branch information...
bsdphk committed Nov 8, 2019
1 parent 0592e39 commit d9195348b627a8d5541ae264c18997a251a5d1dc
Showing with 1 addition and 6 deletions.
  1. +1 −6 bin/varnishd/cache/cache_vcl.c
@@ -920,17 +920,12 @@ static struct cli_proto vcl_cmds[] = {
void
VCL_Init(void)
{
unsigned sz;
char *vslbuf;

assert(cache_param->workspace_client > 0);
WS_Init(&ws_cli, "cli", malloc(cache_param->workspace_client),
cache_param->workspace_client);
ws_snapshot_cli = WS_Snapshot(&ws_cli);
CLI_AddFuncs(vcl_cmds);
Lck_New(&vcl_mtx, lck_vcl);
sz = cache_param->vsl_buffer;
vslbuf = malloc(sz);
AN(vslbuf);
VSL_Setup(&vsl_cli, vslbuf, sz);
VSL_Setup(&vsl_cli, NULL, 0);
}

0 comments on commit d919534

Please sign in to comment.
You can’t perform that action at this time.