diff options
author | joerg <joerg@pkgsrc.org> | 2012-12-20 21:57:52 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2012-12-20 21:57:52 +0000 |
commit | 06bd2c25d66fd5a1d7be66b398b0d3382ea29edb (patch) | |
tree | fa1cd7f8b7316b26fdbaef01a28a243f094d123c /emulators/fmsx | |
parent | b367a03d9a47b844064670e77681fbdc94137fbc (diff) | |
download | pkgsrc-06bd2c25d66fd5a1d7be66b398b0d3382ea29edb.tar.gz |
Always return a value from non-void functions. Add missing system
header.
Diffstat (limited to 'emulators/fmsx')
-rw-r--r-- | emulators/fmsx/distinfo | 3 | ||||
-rw-r--r-- | emulators/fmsx/patches/patch-EMULib_LibUnix.c | 30 |
2 files changed, 32 insertions, 1 deletions
diff --git a/emulators/fmsx/distinfo b/emulators/fmsx/distinfo index 3bc79a85af5..13fe8539d59 100644 --- a/emulators/fmsx/distinfo +++ b/emulators/fmsx/distinfo @@ -1,10 +1,11 @@ -$NetBSD: distinfo,v 1.7 2012/07/18 23:23:20 marino Exp $ +$NetBSD: distinfo,v 1.8 2012/12/20 21:57:52 joerg Exp $ SHA1 (fMSX351.zip) = d28d2bf3bc2a1ae273899c80bbbe9bdf4dd98767 RMD160 (fMSX351.zip) = be16d466f5ff29265d0faebd186a701a96ba81f6 Size (fMSX351.zip) = 515112 bytes SHA1 (patch-EMULIB_FDIDisk.c) = d74b7d5d1217297cfa54a1085f85ae4a3db9b635 SHA1 (patch-EMULIB_Floppy.c) = 4b8874cac9c58839bbb107bf8cb8c59915873cac +SHA1 (patch-EMULib_LibUnix.c) = b598795252f20992499ed72986e124592ef9470f SHA1 (patch-aa) = 80191e7d1ff6b36cc1cf97174162e179d743b149 SHA1 (patch-ab) = 7bff0051685efd22e678c66ffa4075830143e6d6 SHA1 (patch-ae) = 7168f963dac8686200119b297af3bcf8f8203c4c diff --git a/emulators/fmsx/patches/patch-EMULib_LibUnix.c b/emulators/fmsx/patches/patch-EMULib_LibUnix.c new file mode 100644 index 00000000000..db5a536e6ef --- /dev/null +++ b/emulators/fmsx/patches/patch-EMULib_LibUnix.c @@ -0,0 +1,30 @@ +$NetBSD: patch-EMULib_LibUnix.c,v 1.1 2012/12/20 21:57:52 joerg Exp $ + +--- EMULib/LibUnix.c.orig 2012-12-20 12:25:35.000000000 +0000 ++++ EMULib/LibUnix.c +@@ -12,6 +12,8 @@ + /*************************************************************/ + #include "EMULib.h" + ++#include <unistd.h> ++#include <ctype.h> + #include <stdio.h> + #include <stdlib.h> + #include <string.h> +@@ -142,7 +144,7 @@ int ShowVideo(void) + else + #endif + XPutImage(Dsp,Wnd,DefaultGCOfScreen(Scr),VideoImg->XImg,VideoX,VideoY,(XSize-VideoW)>>1,(YSize-VideoH)>>1,VideoW,VideoH); +- return; ++ return 0; + } + + /* Scale video buffer into OutImg */ +@@ -159,6 +161,7 @@ int ShowVideo(void) + else + #endif + XPutImage(Dsp,Wnd,DefaultGCOfScreen(Scr),OutImg.XImg,0,0,0,0,XSize,YSize); ++ return 0; + } + + /** GetJoystick() ********************************************/ |