summaryrefslogtreecommitdiff
path: root/games-board/cgoban/files/cgoban-1.9.14-sighandler.patch
blob: 3a9ff6b4a6bd3411ee4c5f9e44e7011625390dce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
https://bugs.gentoo.org/944043
Handler ignores arguments, adding ignored argument to signature
so it will conform to system one, is always correct.
--- a/src/main.c	2026-03-07 21:55:30.810539815 +0300
+++ b/src/main.c	2026-03-07 21:56:18.365294853 +0300
@@ -29,7 +29,7 @@
  **********************************************************************/
 static void  stealth(int exitVal);
 #if  !DEBUG
-static RETSIGTYPE  sigHandler();
+static RETSIGTYPE  sigHandler(int);
 #endif  /* !DEBUG */
 
 
@@ -132,7 +132,7 @@
 
 
 #if  !DEBUG
-static RETSIGTYPE  sigHandler()  {
+static RETSIGTYPE  sigHandler(int)  {
   fprintf(stderr, "Signal caught.\n");
   abort();
 }