mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-05-05 09:56:12 +02:00
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>
This commit is contained in:
parent
9d10907718
commit
6719bf5672
@ -44,7 +44,7 @@ static struct sigaction sigact;
|
||||
#endif
|
||||
|
||||
/*ARGSUSED*/
|
||||
static RETSIGTYPE
|
||||
static void
|
||||
sig_catch (sig)
|
||||
int sig;
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user