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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
$NetBSD: patch-props.c,v 1.1 2021/12/29 23:56:01 nia Exp $
Add return types, from FreeBSD Ports.
--- props.c.orig 1994-03-18 05:13:17.000000000 +0000
+++ props.c
@@ -9,7 +9,7 @@
/* the get-ready sequence */
-get_ready()
+void get_ready()
{
int xx, yy, i;
int direction, ascent, descent;
@@ -41,7 +41,7 @@ get_ready()
/* the game-over sequence */
-game_over()
+void game_over()
{
int xx, yy;
int direction, ascent, descent;
@@ -64,7 +64,7 @@ game_over()
/* the end-of-level sequence -- the screen flashes a few times */
-finish()
+void finish()
{
int i;
@@ -115,7 +115,7 @@ Bool pause_seq()
if (event.xany.window != window) continue;
switch (event.type) {
case KeyPress:
- XLookupString(&event, &c_buf, 1, &last_key, &status);
+ XLookupString((XKeyEvent *) &event, &c_buf, 1, &last_key, &status);
if ((last_key == XK_q) || (last_key == XK_Q))
do_exit();
if ((last_key == XK_r) || (last_key == XK_R))
@@ -136,7 +136,7 @@ Bool pause_seq()
}
-do_sleep(secs)
+void do_sleep(secs)
{
int i;
@@ -147,7 +147,7 @@ do_sleep(secs)
}
-do_usleep(usecs)
+void do_usleep(usecs)
{
int i, d, r;
@@ -164,7 +164,7 @@ do_usleep(usecs)
}
-check_normal_events()
+void check_normal_events()
{
char c_buf;
XEvent event;
@@ -175,7 +175,7 @@ check_normal_events()
if (event.xany.window != window) continue;
switch (event.type) {
case KeyPress:
- XLookupString(&event, &c_buf, 1, &last_key, &status);
+ XLookupString((XKeyEvent *) &event, &c_buf, 1, &last_key, &status);
if (last_key == XK_space)
if (!pause_seq())
longjmp(jb_start, 1);
|