aboutsummaryrefslogtreecommitdiff
path: root/lang/yabasic
diff options
context:
space:
mode:
authorVanilla I. Shu <vanilla@FreeBSD.org>2011-09-28 02:39:34 +0000
committerVanilla I. Shu <vanilla@FreeBSD.org>2011-09-28 02:39:34 +0000
commit4dab10ebdba9936f122a94c10a69a23ba3a02ebe (patch)
tree051dc062aa25dfe87d9c8aa1fb9f4092992ee17c /lang/yabasic
parentcef71cc9462851675c6460169f667988dc1fabc6 (diff)
downloadports-4dab10ebdba9936f122a94c10a69a23ba3a02ebe.tar.gz
ports-4dab10ebdba9936f122a94c10a69a23ba3a02ebe.zip
Fix build error with clang.
Notes
Notes: svn path=/head/; revision=282538
Diffstat (limited to 'lang/yabasic')
-rw-r--r--lang/yabasic/files/patch-graphic.c29
-rw-r--r--lang/yabasic/files/patch-main.c11
2 files changed, 40 insertions, 0 deletions
diff --git a/lang/yabasic/files/patch-graphic.c b/lang/yabasic/files/patch-graphic.c
new file mode 100644
index 000000000000..3352cd364e8f
--- /dev/null
+++ b/lang/yabasic/files/patch-graphic.c
@@ -0,0 +1,29 @@
+--- graphic.c.orig 2011-09-28 10:01:08.000000000 +0800
++++ graphic.c 2011-09-28 10:01:57.000000000 +0800
+@@ -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,
diff --git a/lang/yabasic/files/patch-main.c b/lang/yabasic/files/patch-main.c
new file mode 100644
index 000000000000..eaf7224bf4ab
--- /dev/null
+++ b/lang/yabasic/files/patch-main.c
@@ -0,0 +1,11 @@
+--- main.c.orig 2011-09-28 10:00:33.000000000 +0800
++++ main.c 2011-09-28 10:00:52.000000000 +0800
+@@ -2400,7 +2400,7 @@ find_interpreter (char *name) /* find in
+ if (try[to - from - 1] != '/')
+ strcat (try, "/");
+ strcat (try, name);
+- if (f = fopen (try, "r"))
++ if ((f = fopen (try, "r")))
+ {
+ fclose (f);
+ return try;