diff options
author | Stefan Metzmacher <metze@samba.org> | 2014-02-26 07:38:07 +0100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2014-04-02 09:03:42 +0200 |
commit | f03653e39aa01dea37a237996a2660206b0b01d4 (patch) | |
tree | bdb32b9a69cd1f051df063828e576f47fb5d57c6 /lib/util/tevent_debug.c | |
parent | cc2bc23e46028bf58261a86ce3c2db437580611d (diff) | |
download | samba-f03653e39aa01dea37a237996a2660206b0b01d4.tar.gz samba-f03653e39aa01dea37a237996a2660206b0b01d4.tar.xz samba-f03653e39aa01dea37a237996a2660206b0b01d4.zip |
lib/util: fix const warnings
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'lib/util/tevent_debug.c')
-rw-r--r-- | lib/util/tevent_debug.c | 3 |
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) |