Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Factory:Staging:I
autofs
autofs-5.1.9-cast-sasl_callback_t-function-poin...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File autofs-5.1.9-cast-sasl_callback_t-function-pointers.patch of Package autofs
From e0ca78a87b4107bfc3163d8afd948ced40d70328 Mon Sep 17 00:00:00 2001 From: David Disseldorp <ddiss@suse.de> Date: Thu, 21 Mar 2024 02:15:06 +0100 Subject: [PATCH] autofs-5.1.9 - cast sasl_callback_t function pointers GCC 14+ uses -Werror=incompatible-pointer-types by default. sasl.h:sasl_callback_t doesn't offer a type-safe mechanism for setting @proc callback functions, so a cast is necessary. Signed-off-by: David Disseldorp <ddiss@suse.de> --- modules/cyrus-sasl.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/modules/cyrus-sasl.c b/modules/cyrus-sasl.c index e742eaf..107e182 100644 --- a/modules/cyrus-sasl.c +++ b/modules/cyrus-sasl.c @@ -109,17 +109,17 @@ static int getpass_func(sasl_conn_t *, void *, int, sasl_secret_t **); static int getuser_func(void *, int, const char **, unsigned *); static sasl_callback_t callbacks[] = { - { SASL_CB_USER, &getuser_func, NULL }, - { SASL_CB_AUTHNAME, &getuser_func, NULL }, - { SASL_CB_PASS, &getpass_func, NULL }, + { SASL_CB_USER, (int (*)(void))&getuser_func, NULL }, + { SASL_CB_AUTHNAME, (int (*)(void))&getuser_func, NULL }, + { SASL_CB_PASS, (int (*)(void))&getpass_func, NULL }, { SASL_CB_LIST_END, NULL, NULL }, }; static sasl_callback_t debug_callbacks[] = { - { SASL_CB_LOG, &sasl_log_func, NULL }, - { SASL_CB_USER, &getuser_func, NULL }, - { SASL_CB_AUTHNAME, &getuser_func, NULL }, - { SASL_CB_PASS, &getpass_func, NULL }, + { SASL_CB_LOG, (int (*)(void))&sasl_log_func, NULL }, + { SASL_CB_USER, (int (*)(void))&getuser_func, NULL }, + { SASL_CB_AUTHNAME, (int (*)(void))&getuser_func, NULL }, + { SASL_CB_PASS, (int (*)(void))&getpass_func, NULL }, { SASL_CB_LIST_END, NULL, NULL }, }; -- 2.35.3
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor