From f209ffecfbe82d947e930bc0792161b4b5e92b38 Mon Sep 17 00:00:00 2001 From: wiz Date: Sat, 4 Dec 2004 12:01:09 +0000 Subject: Add casts to unsigned char to make this build on -current. --- editors/gtranslator/patches/patch-ab | 13 +++++++++++++ editors/gtranslator/patches/patch-ac | 13 +++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 editors/gtranslator/patches/patch-ab create mode 100644 editors/gtranslator/patches/patch-ac (limited to 'editors/gtranslator/patches') 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); + } -- cgit v1.2.3