diff options
author | Ondrej Kos <okos@redhat.com> | 2013-08-07 15:18:31 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-08-09 18:06:29 +0200 |
commit | 483728c1f9719e419830cce93b7e411370a5364b (patch) | |
tree | b45251ed1a36cdd2f6558317f6771c6d883b3a35 /src/providers/ad | |
parent | 0664ecd07f455c933074ac382cee91039bfaa7e2 (diff) | |
download | sssd-483728c1f9719e419830cce93b7e411370a5364b.tar.gz sssd-483728c1f9719e419830cce93b7e411370a5364b.tar.xz sssd-483728c1f9719e419830cce93b7e411370a5364b.zip |
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.
Diffstat (limited to 'src/providers/ad')
-rw-r--r-- | src/providers/ad/ad_init.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/providers/ad/ad_init.c b/src/providers/ad/ad_init.c index ef39eaf74..816d12f06 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 |