sasl-mechlist.c: Cast function pointer to the expected type

This fixes a build failure with GCC 14,

Related to:

  <https://fedoraproject.org/wiki/Changes/PortingToModernC>
  <https://fedoraproject.org/wiki/Toolchain/PortingToModernC>
This commit is contained in:
Florian Weimer 2024-01-17 19:58:11 +01:00
parent 8a986014fe
commit 74773a7b17
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ main(int argc, char **argv)
int ret, i;
const char *mechs, **globals;
sasl_callback_t callbacks[] = {
{SASL_CB_GETOPT, my_getopt, NULL},
{SASL_CB_GETOPT, (int (*)(void)) my_getopt, NULL},
{SASL_CB_LIST_END},
};
sasl_conn_t *connection;