package/parprouted: fix build with gcc >= 15.x

Fixes:

  https://autobuild.buildroot.net/results/572669fe1f9a77083a361fee7c8acdf38d7375ae/

Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Bernd Kuhls
2025-12-01 20:28:49 +01:00
committed by Thomas Petazzoni
parent 37ef4f862f
commit eb25a634c1

View File

@@ -0,0 +1,38 @@
Description: Fix FTBFS with GCC 15
Author: Adrian Bunk <bunk@debian.org>
Bug-Debian: https://bugs.debian.org/1097548
Downloaded from
https://sources.debian.org/src/parprouted/0.70-6/debian/patches/gcc-15.patch
Upstream: dead (last update 2008)
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
--- parprouted-0.70.orig/parprouted.c
+++ parprouted-0.70/parprouted.c
@@ -330,7 +330,7 @@ void parseproc()
}
}
-void cleanup()
+void cleanup(void *arg)
{
/* FIXME: I think this is a wrong way to do it ... */
@@ -346,13 +346,13 @@ void cleanup()
exit(1);
}
-void sighandler()
+void sighandler(int sig)
{
/* FIXME: I think this is a wrong way to do it ... */
perform_shutdown=1;
}
-void *main_thread()
+void *main_thread(void *arg)
{
time_t last_refresh;