summaryrefslogtreecommitdiff
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
parenta08be176f6876e4bd37dbe74eb2706f76594b903 (diff)
downloadpkgsrc-79d26c34d27eaa9368d12ba9792b8393e2387e7c.tar.gz
Add missing prototypes for functions that should really be void.
-rw-r--r--games/spellcast/distinfo5
-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
4 files changed, 47 insertions, 1 deletions
diff --git a/games/spellcast/distinfo b/games/spellcast/distinfo
index f242329a776..def994dc7c2 100644
--- a/games/spellcast/distinfo
+++ b/games/spellcast/distinfo
@@ -1,6 +1,9 @@
-$NetBSD: distinfo,v 1.4 2010/02/14 21:03:19 joerg Exp $
+$NetBSD: distinfo,v 1.5 2012/12/20 22:04:14 joerg Exp $
SHA1 (spellcast.tar.Z) = 3c51aa1746d4b8385a87ab5af5ed78b48cc4ac19
RMD160 (spellcast.tar.Z) = ed4751d902a58abdc2a79333541fc866170a642d
Size (spellcast.tar.Z) = 129173 bytes
SHA1 (patch-aa) = 0b407bfe80ca4170d54da83deebf5ea57952cf90
+SHA1 (patch-xgest.c) = 61e4fc03709995813d8a2ced3d4c8e651aa6072d
+SHA1 (patch-xquery.c) = fdf45bfbc4c8b9e530a966439e4dd0575351b7df
+SHA1 (patch-xspell.h) = aa77dc029e80f6926024a46d90ae927bee111ce3
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);