mirror of
https://github.com/samba-team/samba.git
synced 2025-01-13 13:18:06 +03:00
Use bool instead of int for a boolean variable
This commit is contained in:
parent
9a93dc092c
commit
915518c0db
@ -107,7 +107,7 @@ int smb_thread_set_functions(const struct smb_thread_functions *tf)
|
|||||||
void smb_thread_once(smb_thread_once_t *ponce, void (*init_fn)(void))
|
void smb_thread_once(smb_thread_once_t *ponce, void (*init_fn)(void))
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
int need_func_call;
|
bool need_func_call;
|
||||||
|
|
||||||
/* Lock our "once" mutex in order to test and initialize ponce */
|
/* Lock our "once" mutex in order to test and initialize ponce */
|
||||||
if ((ret = SMB_THREAD_LOCK(once_mutex, SMB_THREAD_LOCK)) != 0) {
|
if ((ret = SMB_THREAD_LOCK(once_mutex, SMB_THREAD_LOCK)) != 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user