summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorjoerg <joerg>2013-03-02 18:11:32 +0000
committerjoerg <joerg>2013-03-02 18:11:32 +0000
commit45cd69565d20e0da0ca6095465ccf020ac8f39e8 (patch)
tree62fe3fbcd3ab83469413214dd5430d6630f8d2cd /games
parente74bfa203592b2d366b49c71f688904d02dda7df (diff)
downloadpkgsrc-45cd69565d20e0da0ca6095465ccf020ac8f39e8.tar.gz
Return a value in non-void functions.
Diffstat (limited to 'games')
-rw-r--r--games/gamazons/distinfo3
-rw-r--r--games/gamazons/patches/patch-src_callbacks.c25
2 files changed, 27 insertions, 1 deletions
diff --git a/games/gamazons/distinfo b/games/gamazons/distinfo
index 2b401137e06..b688164adf8 100644
--- a/games/gamazons/distinfo
+++ b/games/gamazons/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.1.1.1 2007/01/06 02:07:50 wiz Exp $
+$NetBSD: distinfo,v 1.2 2013/03/02 18:11:32 joerg Exp $
SHA1 (gamazons-0.83.tar.gz) = 62ef6bfaeaaf36a31f00377599feb286d489bb27
RMD160 (gamazons-0.83.tar.gz) = 2fd9433846173a7bc53eb7abd9dfbf367460df5e
Size (gamazons-0.83.tar.gz) = 258614 bytes
SHA1 (patch-aa) = 9f2db32d979eace078aa0b871142d1c6c13e1d5b
+SHA1 (patch-src_callbacks.c) = cb3b8c77d9c49c1517020e25e740d632d88c7305
diff --git a/games/gamazons/patches/patch-src_callbacks.c b/games/gamazons/patches/patch-src_callbacks.c
new file mode 100644
index 00000000000..6e384b34878
--- /dev/null
+++ b/games/gamazons/patches/patch-src_callbacks.c
@@ -0,0 +1,25 @@
+$NetBSD: patch-src_callbacks.c,v 1.1 2013/03/02 18:11:33 joerg Exp $
+
+--- src/callbacks.c.orig 2013-03-01 12:27:35.000000000 +0000
++++ src/callbacks.c
+@@ -359,17 +359,17 @@ int board_press_cb (GnomeCanvasItem *ite
+ if (bstate_get_moving_piece())
+ {
+ //printf("Can't do that while a piece is moving\n");
+- return;
++ return 0;
+ }
+ if (bstate_get_open_dialog())
+ {
+ //printf("Can't do that while another window is open\n");
+- return;
++ return 0;
+ }
+ if (bstate_get_what_next() == NEW_GAME)
+ {
+ //printf("Can't do that while I'm expecting a new game to start\n");
+- return;
++ return 0;
+ }
+ if (bstate_get_replay_mode())
+ return 0;