Commit 1cc4f78b authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Fix prototype for user defined subroutines.

Fixes #1357
parent 5c03d65b
......@@ -251,9 +251,9 @@ vcc_ParseFunction(struct vcc *tl)
}
tl->curproc = vcc_AddProc(tl, tl->t);
Fh(tl, 0, "static int VGC_function_%.*s "
"(struct vrt_ctx *ctx);\n", PF(tl->t));
"(const struct vrt_ctx *ctx);\n", PF(tl->t));
Fc(tl, 1, "\nstatic int __match_proto__(vcl_func_t)\n");
Fc(tl, 1, "VGC_function_%.*s(struct vrt_ctx *ctx)\n",
Fc(tl, 1, "VGC_function_%.*s(const struct vrt_ctx *ctx)\n",
PF(tl->t));
}
vcc_NextToken(tl);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment