$OpenBSD: patch-props_c,v 1.2 2017/05/10 23:34:25 espie Exp $
Index: props.c
--- props.c.orig
+++ props.c
@@ -7,8 +7,10 @@
  * sequences in the game.
  */
 
+void check_normal_events(void);
 
 /* the get-ready sequence */
+void
 get_ready()
 {
    int          xx, yy, i;
@@ -41,6 +43,7 @@ get_ready()
 
 
 /* the game-over sequence */
+void
 game_over()
 {
    int          xx, yy;
@@ -64,6 +67,7 @@ game_over()
 
 
 /* the end-of-level sequence -- the screen flashes a few times */
+void
 finish()
 {
    int i;
@@ -115,7 +119,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 +140,8 @@ Bool pause_seq()
 }
 
 
-do_sleep(secs)
+void
+do_sleep(int secs)
 {
    int i;
 
@@ -147,7 +152,8 @@ do_sleep(secs)
 }
 
 
-do_usleep(usecs)
+void
+do_usleep(int usecs)
 {
    int i, d, r;
 
@@ -164,6 +170,7 @@ do_usleep(usecs)
 }
 
 
+void
 check_normal_events()
 {
    char			c_buf;
@@ -175,7 +182,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);
