diff options
author | Uri Simchoni <uri@samba.org> | 2017-11-19 13:08:30 +0000 |
---|---|---|
committer | Andreas Schneider <asn@samba.org> | 2017-11-23 11:32:50 +0100 |
commit | c611121eec7b5f2c39cab7b1c0295eddefdddb1d (patch) | |
tree | 155d214440faf70157d1f21029e56518bb3b0c18 | |
parent | 38d359a686aa44b1d6cce8d6d9aac9687dd8d708 (diff) | |
download | pam_wrapper-c611121eec7b5f2c39cab7b1c0295eddefdddb1d.tar.gz pam_wrapper-c611121eec7b5f2c39cab7b1c0295eddefdddb1d.tar.xz pam_wrapper-c611121eec7b5f2c39cab7b1c0295eddefdddb1d.zip |
pam_wrapper: use uintptr_t as base for const-discarding
Seems like HAVE_INTPTR_T is not available on FreeBSD. Use
the uintptr_t-base const discarding to avoid picky compiler
warnings (other places in Samba also use uintptr_t).
Signed-off-by: Uri Simchoni <uri@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
-rw-r--r-- | src/python/pypamtest.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/python/pypamtest.c b/src/python/pypamtest.c index a71fd35..c52e1bc 100644 --- a/src/python/pypamtest.c +++ b/src/python/pypamtest.c @@ -24,8 +24,8 @@ #define PYTHON_MODULE_NAME "pypamtest" #ifndef discard_const_p -#if defined(__intptr_t_defined) || defined(HAVE_INTPTR_T) -# define discard_const_p(type, ptr) ((type *)((intptr_t)(ptr))) +#if defined(__intptr_t_defined) || defined(HAVE_UINTPTR_T) +# define discard_const_p(type, ptr) ((type *)((uintptr_t)(ptr))) #else # define discard_const_p(type, ptr) ((type *)(ptr)) #endif |