summaryrefslogtreecommitdiff
path: root/editors/gtranslator/patches
diff options
context:
space:
mode:
authorwiz <wiz>2004-12-04 12:01:09 +0000
committerwiz <wiz>2004-12-04 12:01:09 +0000
commitf209ffecfbe82d947e930bc0792161b4b5e92b38 (patch)
tree99352388faf8b20abd2cd26a1054d2e36cfcd84f /editors/gtranslator/patches
parent76d548054bbd1287016d4282401aa805cf9a339d (diff)
downloadpkgsrc-f209ffecfbe82d947e930bc0792161b4b5e92b38.tar.gz
Add casts to unsigned char to make this build on -current.
Diffstat (limited to 'editors/gtranslator/patches')
-rw-r--r--editors/gtranslator/patches/patch-ab13
-rw-r--r--editors/gtranslator/patches/patch-ac13
2 files changed, 26 insertions, 0 deletions
diff --git a/editors/gtranslator/patches/patch-ab b/editors/gtranslator/patches/patch-ab
new file mode 100644
index 00000000000..324889f060d
--- /dev/null
+++ b/editors/gtranslator/patches/patch-ab
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.1 2004/12/04 12:01:09 wiz Exp $
+
+--- src/nautilus-string.c.orig 2003-07-06 23:44:18.000000000 +0200
++++ src/nautilus-string.c
+@@ -375,7 +375,7 @@ nautilus_str_to_int (const char *string,
+
+ /* Check that all the trailing characters are spaces. */
+ while (*parse_end != '\0') {
+- if (!isspace (*parse_end++)) {
++ if (!isspace (*(unsigned char *)parse_end++)) {
+ return FALSE;
+ }
+ }
diff --git a/editors/gtranslator/patches/patch-ac b/editors/gtranslator/patches/patch-ac
new file mode 100644
index 00000000000..1e583d6a89c
--- /dev/null
+++ b/editors/gtranslator/patches/patch-ac
@@ -0,0 +1,13 @@
+$NetBSD: patch-ac,v 1.1 2004/12/04 12:01:09 wiz Exp $
+
+--- src/utils.c.orig 2003-08-25 14:58:22.000000000 +0200
++++ src/utils.c
+@@ -635,7 +635,7 @@ gfloat gtranslator_utils_calculate_simil
+ {
+ similarity+=one_char_percentage;
+ }
+- else if((tolower(a[i]))==(tolower(b[i])))
++ else if((tolower((unsigned char)a[i]))==(tolower((unsigned char)b[i])))
+ {
+ similarity+=(one_char_percentage / 2);
+ }