]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
ead: replace legacy RETSIGTYPE with void in signal handler 19681/head
authorNick Hainke <vincent@systemli.org>
Tue, 5 Aug 2025 16:21:55 +0000 (18:21 +0200)
committerNick Hainke <vincent@systemli.org>
Wed, 6 Aug 2025 04:39:47 +0000 (06:39 +0200)
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>
package/network/services/ead/src/tinysrp/t_getpass.c

index 6ae7fca4de8362e142928f448db042af2a33ba00..a7d571d5de41254b0d03860404b6a833d861334a 100644 (file)
@@ -44,7 +44,7 @@ static  struct  sigaction sigact;
 #endif
 
 /*ARGSUSED*/
-static RETSIGTYPE
+static void
 sig_catch (sig)
 int     sig;
 {