]> 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:23 +0000 (19:18 +0000)
servers/lloadd/libevent_support.c
servers/lloadd/module_init.c

index 252980bfeaeec4034aa1a319b54e0557a202ec96..79e7845adb246dbcd2f025eba11bb69ba1b2f67b 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 )
 {
@@ -152,7 +158,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 19323c73132ffa4f38ed40fdb2cc383cf6afcda8..a122a529625bf15d766a60df0c1bf6c00dfb542f 100644 (file)
@@ -151,7 +151,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;