]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:lib/events: let s4_event_context_init() use samba_tevent_context_init()
authorStefan Metzmacher <metze@samba.org>
Thu, 27 Oct 2022 20:17:55 +0000 (22:17 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 18 Jan 2023 16:26:36 +0000 (16:26 +0000)
This is no real change, but it makes sure we only have to
change samba_tevent_context_init() in future in order to
distribute the change to all places.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Pavel Filipenský <pfilipen@redhat.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
source4/lib/events/tevent_s4.c

index f80424f71f5375c035139d5a2dcfadcfc05b48e5..36a4d32b957f6d3153f2e21b6955234f9465672c 100644 (file)
@@ -31,7 +31,7 @@ struct tevent_context *s4_event_context_init(TALLOC_CTX *mem_ctx)
 {
        struct tevent_context *ev;
 
-       ev = tevent_context_init_byname(mem_ctx, NULL);
+       ev = samba_tevent_context_init(mem_ctx);
        if (ev) {
                samba_tevent_set_debug(ev, "s4_tevent");
                tevent_loop_allow_nesting(ev);