git.samba.org
/
obnox
/
cwrap
/
socket_wrapper.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6adb3e5
)
swrap: Fix type punning warnings when loading functions.
author
Andreas Schneider
<asn@samba.org>
Tue, 2 Sep 2014 09:55:58 +0000
(11:55 +0200)
committer
Andreas Schneider
<asn@samba.org>
Tue, 2 Sep 2014 11:32:09 +0000
(13:32 +0200)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
src/socket_wrapper.c
patch
|
blob
|
history
diff --git
a/src/socket_wrapper.c
b/src/socket_wrapper.c
index 430904d5a0f3e4a5d1fa31a874399589875672e8..88183c121bad1469d9db8eba0253e155b5524409 100644
(file)
--- a/
src/socket_wrapper.c
+++ b/
src/socket_wrapper.c
@@
-520,8
+520,9
@@
static void *_swrap_load_lib_function(enum swrap_lib lib, const char *fn_name)
#define swrap_load_lib_function(lib, fn_name) \
if (swrap.fns.libc_##fn_name == NULL) { \
+ void *swrap_cast_ptr = _swrap_load_lib_function(lib, #fn_name); \
*(void **) (&swrap.fns.libc_##fn_name) = \
-
_swrap_load_lib_function(lib, #fn_name)
; \
+
swrap_cast_ptr
; \
}