forgotten (char *) cast for %s format

seems to be a real benefit of FreeBSD 13 vtest over all the other
vtesters. Not even the compulsively obsessive Flexelint complained.
parent ff573493
......@@ -234,7 +234,7 @@ priv_ ## name ## _fini(void *ptr) \
const char * const fmt = "priv_" #name "_fini(%p)"; \
\
AN ## assert (ptr); \
VSL(SLT_Debug, 0, fmt, ptr); \
VSL(SLT_Debug, 0, fmt, (char *)ptr); \
free(ptr); \
} \
\
......
......@@ -159,7 +159,7 @@ obj_priv_ ## name ## _fini(void *ptr) \
const char * const fmt = "obj_priv_" #name "_fini(%p = \"%s\")"; \
\
AN(ptr); \
VSL(SLT_Debug, 0, fmt, ptr, ptr); \
VSL(SLT_Debug, 0, fmt, ptr, (char *)ptr); \
} \
\
static const struct vmod_priv_methods \
......
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