Skip to content

Commit

Permalink
CLEANUP: Cast function pointer in sasl_callback_t
Browse files Browse the repository at this point in the history
  • Loading branch information
namsic committed Oct 25, 2024
1 parent be30a83 commit d7fe2c3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sasl_defs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down

0 comments on commit d7fe2c3

Please sign in to comment.