diff --git a/sasl_defs.c b/sasl_defs.c index 5b4dc97c..a51d5a75 100644 --- a/sasl_defs.c +++ b/sasl_defs.c @@ -141,15 +141,15 @@ static int sasl_log(void *context, int level, const char *message) static sasl_callback_t sasl_callbacks[] = { #ifdef ENABLE_SASL_PWDB - { SASL_CB_SERVER_USERDB_CHECKPASS, sasl_server_userdb_checkpass, NULL }, + { SASL_CB_SERVER_USERDB_CHECKPASS, (int(*)(void))sasl_server_userdb_checkpass, NULL }, #endif #ifdef ENABLE_SASL - { SASL_CB_LOG, sasl_log, NULL }, + { SASL_CB_LOG, (int(*)(void))sasl_log, NULL }, #endif #ifdef HAVE_SASL_CB_GETCONF - { SASL_CB_GETCONF, sasl_getconf, NULL }, + { SASL_CB_GETCONF, (int(*)(void))sasl_getconf, NULL }, #endif { SASL_CB_LIST_END, NULL, NULL }