From 2b8025483db9f231297adaa02a0518a8e71c931e Mon Sep 17 00:00:00 2001 From: joerg Date: Thu, 20 Dec 2012 21:49:06 +0000 Subject: Consistently return a value in non-void functions. --- lang/yabasic/distinfo | 3 ++- lang/yabasic/patches/patch-graphic.c | 31 +++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 lang/yabasic/patches/patch-graphic.c (limited to 'lang/yabasic') diff --git a/lang/yabasic/distinfo b/lang/yabasic/distinfo index c9619d48ea8..712a8346c28 100644 --- a/lang/yabasic/distinfo +++ b/lang/yabasic/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.5 2012/06/04 11:30:21 obache Exp $ +$NetBSD: distinfo,v 1.6 2012/12/20 21:49:06 joerg Exp $ SHA1 (yabasic-2.763.tar.gz) = 1cf663d20be64d7ca90157cabfdc09d95b0e43d4 RMD160 (yabasic-2.763.tar.gz) = 745734f06c81be50799c5b7678ad625bb3882d3b Size (yabasic-2.763.tar.gz) = 538760 bytes +SHA1 (patch-graphic.c) = cc881048f609f0eb3ead673419a4c8a63c47b1d3 diff --git a/lang/yabasic/patches/patch-graphic.c b/lang/yabasic/patches/patch-graphic.c new file mode 100644 index 00000000000..0faed1f23fd --- /dev/null +++ b/lang/yabasic/patches/patch-graphic.c @@ -0,0 +1,31 @@ +$NetBSD: patch-graphic.c,v 1.1 2012/12/20 21:49:07 joerg Exp $ + +--- graphic.c.orig 2012-12-20 12:19:11.000000000 +0000 ++++ graphic.c +@@ -748,7 +748,7 @@ grafinit (void) + &visualinfo)) + { + error (ERROR, "Could not get any TrueColor visual"); +- return; ++ return FALSE; + } + + /* convert color masks in more convenient values */ +@@ -790,7 +790,7 @@ grafinit (void) + sprintf (string, "Could not find foreground color '%s'\n", + background); + error (ERROR, string); +- return; ++ return FALSE; + } + forepixel = + rgb_to_pixel (best_match.red >> 8, best_match.green >> 8, +@@ -806,7 +806,7 @@ grafinit (void) + sprintf (string, "Could not find background color '%s'\n", + background); + error (ERROR, string); +- return; ++ return FALSE; + } + backpixel = + rgb_to_pixel (best_match.red >> 8, best_match.green >> 8, -- cgit v1.2.3