$OpenBSD: patch-demo_c,v 1.2 2017/05/10 23:34:25 espie Exp $
Index: demo.c
--- demo.c.orig
+++ demo.c
@@ -6,6 +6,7 @@
  * for the game.
  */
 
+void
 demo_seq()
 {
    int             i, xx, yy, direction, ascent, descent, len;
@@ -127,7 +128,7 @@ demo_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();
 	    XFillRectangle(display, window, clearGC, 0, 0, WIN_WIDTH,
