diff options
| author | Nick Hainke | 2025-08-05 16:21:55 +0000 |
|---|---|---|
| committer | Nick Hainke | 2025-08-06 04:39:47 +0000 |
| commit | 6719bf56727f873dbd62d63fe023b4cca64fb786 (patch) | |
| tree | cc3e112f2a4d8a600aef7ba5635436fd3060c250 | |
| parent | 9d10907718c769f4e6456cfe78b18b1b997bf10e (diff) | |
| download | openwrt-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.c | 2 |
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; { |