summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Hainke2025-08-05 16:21:55 +0000
committerNick Hainke2025-08-06 04:39:47 +0000
commit6719bf56727f873dbd62d63fe023b4cca64fb786 (patch)
treecc3e112f2a4d8a600aef7ba5635436fd3060c250
parent9d10907718c769f4e6456cfe78b18b1b997bf10e (diff)
downloadopenwrt-6719bf56727f873dbd62d63fe023b4cca64fb786.tar.gz
ead: replace legacy RETSIGTYPE with void in signal handler
The RETSIGTYPE macro was historically used for signal handler return types, defaulting to int on some legacy systems. This is no longer needed, so we now use void as the return type. Fixes a compiler error: error: assignment to 'void (*)(int)' from incompatible pointer type 'int (*)()' [-Wincompatible-pointer-types] Link: https://github.com/openwrt/openwrt/pull/19681 Signed-off-by: Nick Hainke <vincent@systemli.org>
-rw-r--r--package/network/services/ead/src/tinysrp/t_getpass.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/network/services/ead/src/tinysrp/t_getpass.c b/package/network/services/ead/src/tinysrp/t_getpass.c
index 6ae7fca4de..a7d571d5de 100644
--- a/package/network/services/ead/src/tinysrp/t_getpass.c
+++ b/package/network/services/ead/src/tinysrp/t_getpass.c
@@ -44,7 +44,7 @@ static struct sigaction sigact;
#endif
/*ARGSUSED*/
-static RETSIGTYPE
+static void
sig_catch (sig)
int sig;
{