summaryrefslogtreecommitdiffstats
path: root/lib/util/tevent_debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/util/tevent_debug.c')
-rw-r--r--lib/util/tevent_debug.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/util/tevent_debug.c b/lib/util/tevent_debug.c
index 3f8c649a0b..bfbaed648e 100644
--- a/lib/util/tevent_debug.c
+++ b/lib/util/tevent_debug.c
@@ -67,7 +67,8 @@ static void samba_tevent_debug(void *context,
void samba_tevent_set_debug(struct tevent_context *ev, const char *name)
{
- tevent_set_debug(ev, samba_tevent_debug, name);
+ void *p = discard_const(name);
+ tevent_set_debug(ev, samba_tevent_debug, p);
}
struct tevent_context *samba_tevent_context_init(TALLOC_CTX *mem_ctx)