Commit 8790bec1 authored by Dridi Boukelmoune's avatar Dridi Boukelmoune

Move vtc.panic to STRANDS

parent bbf53b88
......@@ -70,7 +70,7 @@ $Function IP no_ip()
Returns a null IP address, not even a bogo_ip.
$Function VOID panic(STRING_LIST)
$Function VOID panic(STRANDS)
It can be useful to crash the child process in order to test the robustness
of a VMOD.
......
......@@ -99,16 +99,13 @@ vmod_no_ip(VRT_CTX)
/*--------------------------------------------------------------------*/
VCL_VOID v_matchproto_(td_vtc_panic)
vmod_panic(VRT_CTX, const char *str, ...)
vmod_panic(VRT_CTX, VCL_STRANDS str)
{
va_list ap;
const char *b;
CHECK_OBJ_NOTNULL(ctx, VRT_CTX_MAGIC);
va_start(ap, str);
b = VRT_String(ctx->ws, "PANIC: ", str, ap);
va_end(ap);
b = VRT_StrandsWS(ctx->ws, "PANIC:", str);
VAS_Fail("VCL", "", 0, b, VAS_VCL);
}
......
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