summaryrefslogtreecommitdiff
path: root/lib/util/smb_threads.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/util/smb_threads.c')
-rw-r--r--lib/util/smb_threads.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/util/smb_threads.c b/lib/util/smb_threads.c
index 22afcd378f..04079767d6 100644
--- a/lib/util/smb_threads.c
+++ b/lib/util/smb_threads.c
@@ -104,7 +104,8 @@ int smb_thread_set_functions(const struct smb_thread_functions *tf)
size variable in code internal to Samba without knowing the
implementation's "once" type.
********************************************************************/
-void smb_thread_once(smb_thread_once_t *ponce, void (*init_fn)(void))
+
+int smb_thread_once(smb_thread_once_t *ponce, void (*init_fn)(void))
{
int ret;
bool need_func_call;
@@ -142,6 +143,8 @@ void smb_thread_once(smb_thread_once_t *ponce, void (*init_fn)(void))
/* ... then do so now. */
(*init_fn)();
}
+
+ return 0;
}