]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#10074 Fix type mismatches in lloadd
authorOndřej Kuzník <ondra@mistotebe.net>
Thu, 27 Jul 2023 10:19:20 +0000 (11:19 +0100)
committerQuanah Gibson-Mount <quanah@openldap.org>
Mon, 23 Oct 2023 19:18:27 +0000 (19:18 +0000)
servers/lloadd/libevent_support.c
servers/lloadd/module_init.c

index 2f94c5ef4613094ab6030ae74305c226548c75f9..8d7378ca177ae5f3aac1e91a29e5e2e24de5e7db 100644 (file)
@@ -131,6 +131,12 @@ lload_libevent_cond_timedwait(
     return ldap_pvt_thread_cond_wait( cond, mutex );
 }
 
+unsigned long
+lload_libevent_thread_self( void )
+{
+    return (unsigned long)ldap_pvt_thread_self();
+}
+
 int
 lload_libevent_init( void )
 {
@@ -160,7 +166,7 @@ lload_libevent_init( void )
 
     evthread_set_lock_callbacks( &cbs );
     evthread_set_condition_callbacks( &cond_cbs );
-    evthread_set_id_callback( ldap_pvt_thread_self );
+    evthread_set_id_callback( lload_libevent_thread_self );
     return 0;
 }
 
index 1475538cecdcb15049a744a6c9b3733e6bdb5f9c..d4eebf67883f687db80c3e24653931bffe184efa 100644 (file)
@@ -145,7 +145,6 @@ lload_back_initialize( BackendInfo *bi )
 {
     bi->bi_flags = SLAP_BFLAG_STANDALONE;
     bi->bi_open = lload_back_open;
-    bi->bi_config = config_generic_wrapper;
     bi->bi_pause = lload_pause_cb;
     bi->bi_unpause = lload_unpause_cb;
     bi->bi_close = lload_back_close;