gentoo-ebuilds/sys-apps/udevil/files/udevil-0.4.4-signal-handlers.patch
Hoël Bézier c15bd54361
sys-apps/udevil: Fix compilation with gcc15
Signal handlers should take an int parameter for the signal they’re
handling.

Closes: https://bugs.gentoo.org/945124
Signed-off-by: Hoël Bézier <hoelbezier@riseup.net>
Signed-off-by: Sam James <sam@gentoo.org>
2025-09-24 02:26:35 +01:00

20 lines
445 B
Diff

--- a/src/udevil.c
+++ b/src/udevil.c
@@ -4795,7 +4795,7 @@ static int command_info( CommandData* data )
return ret;
}
-void command_monitor_finalize()
+void command_monitor_finalize(int signal)
{
//if (signal == SIGINT || signal == SIGTERM)
//printf( "\nudevil: SIGINT || SIGTERM\n");
@@ -4913,7 +4913,7 @@ finish_:
return 1;
}
-void command_interrupt()
+void command_interrupt(int signal)
{
if ( udev )
{