summarylogtreecommitdiffstats
path: root/gcc2025.patch
blob: c8fca347c10698180a27131658228ba024939e52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
diff --git a/oneko.c b/oneko.c
index d2b81fe..207f7e2 100644
--- a/oneko.c
+++ b/oneko.c
@@ -267,7 +267,7 @@
     { &RightTogi2GC, &RightTogi2Msk } },	/* NekoState == NEKO_R_TOGI */
 };
 
-static void NullFunction();
+static void NullFunction(int signum);
 
 /*
  *	$@%S%C%H%^%C%W%G!<%?!&(JGC $@=i4|2=(J
@@ -732,6 +732,11 @@
   exit(0);
 }
 
+void
+RestoreCursorHandler(int signum)
+{
+	RestoreCursor();
+}
 
 /*
  *	$@%$%s%?!<%P%k(J
@@ -1330,7 +1335,7 @@
  */
 
 static void
-NullFunction()
+NullFunction(int signum)
 {
   /* No Operation */
 #if defined(SYSV) || defined(SVR4)
@@ -1558,9 +1563,9 @@
   InitScreen(theDisplayName);
 
   signal(SIGALRM, NullFunction);
-  signal(SIGINT, RestoreCursor);
-  signal(SIGTERM, RestoreCursor);
-  signal(SIGQUIT, RestoreCursor);
+  signal(SIGINT, RestoreCursorHandler);
+  signal(SIGTERM, RestoreCursorHandler);
+  signal(SIGQUIT, RestoreCursorHandler);
 
   SinPiPer8Times3 = sin(PI_PER8 * (double)3);
   SinPiPer8 = sin(PI_PER8);