aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2020-03-04 12:37:43 +0100
committerAndreas Schneider <asn@samba.org>2020-03-19 12:43:28 +0100
commitb3151fa71d9ff5432eb0a3645e4406277f992ecc (patch)
treeb40d9cc7f68ebcadc97092423aa943079bf03b7e
parentf23566bf85eceb41579cfe0fac07bf94ce16f21d (diff)
downloadpam_wrapper-b3151fa71d9ff5432eb0a3645e4406277f992ecc.tar.gz
pam_wrapper-b3151fa71d9ff5432eb0a3645e4406277f992ecc.tar.xz
pam_wrapper-b3151fa71d9ff5432eb0a3645e4406277f992ecc.zip
modules: Remove duplicated discard_const* macros
They were already defined a couple of lines above. Signed-off-by: Bastien Nocera <hadess@hadess.net> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
-rw-r--r--src/modules/pam_matrix.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/modules/pam_matrix.c b/src/modules/pam_matrix.c
index c48a916..6fb6a2f 100644
--- a/src/modules/pam_matrix.c
+++ b/src/modules/pam_matrix.c
@@ -93,14 +93,6 @@
} \
} while(0);
-#ifndef discard_const
-#define discard_const(ptr) ((void *)((uintptr_t)(ptr)))
-#endif
-
-#ifndef discard_const_p
-#define discard_const_p(type, ptr) ((type *)discard_const(ptr))
-#endif
-
struct pam_lib_items {
const char *username;
const char *service;