Просмотр исходного кода

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 <[email protected]>
Nick Hainke 5 месяцев назад
Родитель
Сommit
6719bf5672
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      package/network/services/ead/src/tinysrp/t_getpass.c

+ 1 - 1
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;
 {