diff options
author | Uri Simchoni <uri@samba.org> | 2017-11-19 13:08:30 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2017-11-24 01:13:15 +0100 |
commit | 98b1beee721c0ca32e10f4331e767d07be471dd3 (patch) | |
tree | fc014b2bf3f35d78da3668d8d7dc4cf6a047a62b /lib | |
parent | d97feb40e543dfc122569d4ac2dcb208ba661bc7 (diff) | |
download | samba-98b1beee721c0ca32e10f4331e767d07be471dd3.tar.gz |
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>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
(ported from pam_wrapper c611121eec7b5f2c39cab7b1c0295eddefdddb1d)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pam_wrapper/python/pypamtest.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pam_wrapper/python/pypamtest.c b/lib/pam_wrapper/python/pypamtest.c index a71fd359bff..c52e1bce685 100644 --- a/lib/pam_wrapper/python/pypamtest.c +++ b/lib/pam_wrapper/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 |