summaryrefslogtreecommitdiff
path: root/games/spellcast/patches
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2012-12-20 22:04:14 +0000
committerjoerg <joerg@pkgsrc.org>2012-12-20 22:04:14 +0000
commit79d26c34d27eaa9368d12ba9792b8393e2387e7c (patch)
treeb5d77943cf8a035f9ce220e7e6a6823f77beb640 /games/spellcast/patches
parenta08be176f6876e4bd37dbe74eb2706f76594b903 (diff)
downloadpkgsrc-79d26c34d27eaa9368d12ba9792b8393e2387e7c.tar.gz
Add missing prototypes for functions that should really be void.
Diffstat (limited to 'games/spellcast/patches')
-rw-r--r--games/spellcast/patches/patch-xgest.c16
-rw-r--r--games/spellcast/patches/patch-xquery.c16
-rw-r--r--games/spellcast/patches/patch-xspell.h11
3 files changed, 43 insertions, 0 deletions
diff --git a/games/spellcast/patches/patch-xgest.c b/games/spellcast/patches/patch-xgest.c
new file mode 100644
index 00000000000..99d26525aa4
--- /dev/null
+++ b/games/spellcast/patches/patch-xgest.c
@@ -0,0 +1,16 @@
+$NetBSD: patch-xgest.c,v 1.1 2012/12/20 22:04:14 joerg Exp $
+
+--- xgest.c.orig 2012-12-20 17:55:28.000000000 +0000
++++ xgest.c
+@@ -272,10 +272,7 @@ int button;
+ return ms_None;
+ }
+
+-int gesture_motion(py, xpos, ypos, button)
+-struct player *py;
+-int xpos, ypos;
+-int button;
++void gesture_motion(struct player *py, int xpos, int ypos, int button)
+ {
+ int hitx, hity, hit;
+ int posx, posy;
diff --git a/games/spellcast/patches/patch-xquery.c b/games/spellcast/patches/patch-xquery.c
new file mode 100644
index 00000000000..aeffc2b63ec
--- /dev/null
+++ b/games/spellcast/patches/patch-xquery.c
@@ -0,0 +1,16 @@
+$NetBSD: patch-xquery.c,v 1.1 2012/12/20 22:04:14 joerg Exp $
+
+--- xquery.c.orig 2012-12-20 17:54:14.000000000 +0000
++++ xquery.c
+@@ -670,10 +670,7 @@ int button;
+ return ms_Query;
+ }
+
+-int query_motion(py, xpos, ypos, button)
+-struct player *py;
+-int xpos, ypos;
+-int button;
++void query_motion(struct player *py, int xpos, int ypos, int button)
+ {
+ int hitrow;
+ int qtype = py->answers[py->query_hit].query->qtype;
diff --git a/games/spellcast/patches/patch-xspell.h b/games/spellcast/patches/patch-xspell.h
new file mode 100644
index 00000000000..030e59a05f1
--- /dev/null
+++ b/games/spellcast/patches/patch-xspell.h
@@ -0,0 +1,11 @@
+$NetBSD: patch-xspell.h,v 1.1 2012/12/20 22:04:14 joerg Exp $
+
+--- xspell.h.orig 2012-12-20 17:55:01.000000000 +0000
++++ xspell.h
+@@ -138,3 +138,6 @@ extern game *gameval;
+ extern int turnstate;
+ extern int movelist[];
+ extern int blinklevel;
++
++void query_motion(struct player *py, int xpos, int ypos, int button);
++void gesture_motion(struct player *py, int xpos, int ypos, int button);