Skip to content

Fix c23 for dns lib, add function pointers prototypes#264

Open
PPN-SD wants to merge 2 commits intowahern:masterfrom
PPN-SD:fix_c23
Open

Fix c23 for dns lib, add function pointers prototypes#264
PPN-SD wants to merge 2 commits intowahern:masterfrom
PPN-SD:fix_c23

Conversation

@PPN-SD
Copy link
Contributor

@PPN-SD PPN-SD commented Sep 3, 2025

pick up from quantcast/qfs@f035a95

Closes: #261

…ngs.

Signed-off-by: Nicolas PARLANT <nicolas.parlant@parhuet.fr>
>src/signal.c:545:31: error: assignment to ‘__sighandler_t’ {aka ‘void (*)(int)’} from
>incompatible pointer type ‘void (*)(void)’[-Wincompatible-pointer-types]
>  545 |                 sa.sa_handler = &ls_noop;
>        |                               ^

Signed-off-by: Nicolas PARLANT <nicolas.parlant@parhuet.fr>
@daurnimator
Copy link
Collaborator

dns.c is taken from https://github.com/wahern/dns and fixes should go over there first

@daurnimator
Copy link
Collaborator

daurnimator commented Mar 18, 2026

FYI I cherry picked your signal.c change into master but I had to fix an unused warning that came up when using clang.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Compilation will fail in future (-Werror=deprecated-non-prototype issues are forbidden in C23)

3 participants