From 483728c1f9719e419830cce93b7e411370a5364b Mon Sep 17 00:00:00 2001 From: Ondrej Kos Date: Wed, 7 Aug 2013 15:18:31 +0200 Subject: AD: Cast SASL callbacks to propper type The initialization of ad_sasl_callbacks raised an incompatible pointer type warning. This was caused because the cyrus-sasl API hasa changed. The callback function list needs to be cast now. --- src/providers/ad/ad_init.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/providers/ad') diff --git a/src/providers/ad/ad_init.c b/src/providers/ad/ad_init.c index ef39eaf7..816d12f0 100644 --- a/src/providers/ad/ad_init.c +++ b/src/providers/ad/ad_init.c @@ -88,8 +88,10 @@ static int ad_sasl_getopt(void *context, const char *plugin_name, return SASL_OK; } +typedef int (*sss_sasl_gen_cb_fn)(void); + static const sasl_callback_t ad_sasl_callbacks[] = { - { SASL_CB_GETOPT, ad_sasl_getopt, NULL }, + { SASL_CB_GETOPT, (sss_sasl_gen_cb_fn)ad_sasl_getopt, NULL }, { SASL_CB_LIST_END, NULL, NULL } }; /* This is quite a hack, we *try* to fool openldap libraries by initializing -- cgit