diff options
author | joerg <joerg@pkgsrc.org> | 2012-11-19 02:54:02 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2012-11-19 02:54:02 +0000 |
commit | 1e92dc7825e31b032855b9f603d4dea0536cb4fc (patch) | |
tree | a6e3152481da868718e3d17ff53ec7b3d4dd6aa0 /games/falcons-eye | |
parent | a28234538e30174f435c118f6bb55044295a8c7b (diff) | |
download | pkgsrc-1e92dc7825e31b032855b9f603d4dea0536cb4fc.tar.gz |
Always return a value in !void functions.
Diffstat (limited to 'games/falcons-eye')
-rw-r--r-- | games/falcons-eye/distinfo | 3 | ||||
-rw-r--r-- | games/falcons-eye/patches/patch-win_jtp_winjtp.c | 27 |
2 files changed, 29 insertions, 1 deletions
diff --git a/games/falcons-eye/distinfo b/games/falcons-eye/distinfo index 14edad9c526..20165a2ce67 100644 --- a/games/falcons-eye/distinfo +++ b/games/falcons-eye/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.16 2012/05/16 22:53:15 marino Exp $ +$NetBSD: distinfo,v 1.17 2012/11/19 02:54:02 joerg Exp $ SHA1 (falcons-eye-1.9.3-20050216-2/nethack_source_331_jtp_193.zip) = f25a3b77925d247762d18b6f022500aac7c42b29 RMD160 (falcons-eye-1.9.3-20050216-2/nethack_source_331_jtp_193.zip) = a94c3bbdec7a0c034acbe431071342b872c7acc5 @@ -23,3 +23,4 @@ SHA1 (patch-bh) = 65bf424d1e60b0ee9b9acc8b04359f2f4621e605 SHA1 (patch-bi) = 6b3d0d1eca3a23c3086155c1da3c2965d7092d5f SHA1 (patch-bj) = 281f1d3b8d9eafe7fbe7ca729861d4bdccea5a41 SHA1 (patch-bk) = f234c26a95d179c4723676c180db95f26c84bb49 +SHA1 (patch-win_jtp_winjtp.c) = c304d5ddbb585b5cbf5b8f8f63280ecf1329e99c diff --git a/games/falcons-eye/patches/patch-win_jtp_winjtp.c b/games/falcons-eye/patches/patch-win_jtp_winjtp.c new file mode 100644 index 00000000000..325da7fc5e2 --- /dev/null +++ b/games/falcons-eye/patches/patch-win_jtp_winjtp.c @@ -0,0 +1,27 @@ +$NetBSD: patch-win_jtp_winjtp.c,v 1.1 2012/11/19 02:54:02 joerg Exp $ + +--- win/jtp/winjtp.c.orig 2012-11-19 00:35:09.000000000 +0000 ++++ win/jtp/winjtp.c +@@ -1,6 +1,7 @@ + /* SCCS Id: @(#)winjtp.c 3.0 2000/11/12 */ + /* Copyright (c) Jaakko Peltonen, 2000 */ + /* NetHack may be freely redistributed. See license for details. */ ++#include <ctype.h> + + #include "hack.h" + #include "dlb.h" +@@ -1504,12 +1505,12 @@ menu_item **menu_list; + if (!tempwindow) + { + jtp_messagebox("ERROR: Can't find window for menu selection!"); +- return; ++ return -1; + } + if (!tempwindow->menu) + { + jtp_messagebox("ERROR: Window does not have a menu!"); +- return; ++ return -1; + } + + tempwindow->menu->selectiontype = how; |