[SCM] Samba Shared Repository - branch master updated

Andreas Schneider asn at samba.org
Wed Mar 23 13:28:01 UTC 2022


The branch, master has been updated
       via  dbde99a0305 replace: add explicit function pointer casting from dlsym() to avoid warnings
      from  c0f5af21acb lib/replace: Do not typedef int bool

https://git.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit dbde99a03053ac719394e7370fbc9836cdc03d29
Author: Stefan Metzmacher <metze at samba.org>
Date:   Tue Feb 15 15:09:08 2022 +0100

    replace: add explicit function pointer casting from dlsym() to avoid warnings
    
    This avoids a lot of warnings on AIX.
    
    Signed-off-by: Stefan Metzmacher <metze at samba.org>
    Reviewed-by: Andreas Schneider <asn at samba.org>
    
    Autobuild-User(master): Andreas Schneider <asn at cryptomilk.org>
    Autobuild-Date(master): Wed Mar 23 13:27:45 UTC 2022 on sn-devel-184

-----------------------------------------------------------------------

Summary of changes:
 lib/replace/replace.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


Changeset truncated at 500 lines:

diff --git a/lib/replace/replace.h b/lib/replace/replace.h
index 5344d816d58..a8910e2b5e4 100644
--- a/lib/replace/replace.h
+++ b/lib/replace/replace.h
@@ -998,7 +998,7 @@ static inline bool __rep_cwrap_enabled_fn(struct __rep_cwrap_enabled_state *stat
 	state->retval = false;
 	state->cached = true;
 
-	__wrapper_enabled_fn = dlsym(RTLD_DEFAULT, state->fnname);
+	__wrapper_enabled_fn = (bool (*)(void))dlsym(RTLD_DEFAULT, state->fnname);
 	if (__wrapper_enabled_fn == NULL) {
 		return state->retval;
 	}


-- 
Samba Shared Repository



More information about the samba-cvs mailing list