summaryrefslogtreecommitdiff
path: root/cross/uisp/patches/patch-src_dapa_c
diff options
context:
space:
mode:
Diffstat (limited to 'cross/uisp/patches/patch-src_dapa_c')
-rw-r--r--cross/uisp/patches/patch-src_dapa_c15
1 files changed, 15 insertions, 0 deletions
diff --git a/cross/uisp/patches/patch-src_dapa_c b/cross/uisp/patches/patch-src_dapa_c
new file mode 100644
index 00000000000..a36b2db1284
--- /dev/null
+++ b/cross/uisp/patches/patch-src_dapa_c
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_dapa_c,v 1.1 2011/09/03 21:59:18 dholland Exp $
+
+Use toupper correctly. (clang complains and fails the build)
+
+--- src/DAPA.C~ 2004-02-07 18:54:06.000000000 +0000
++++ src/DAPA.C
+@@ -1128,7 +1128,7 @@ TDAPA::TDAPA():
+ strncpy(temp, val, MAXLINESIZE-1);
+ temp[MAXLINESIZE-1] = '\0';
+ for (p=temp; *p; p++)
+- *p=toupper(*p);
++ *p=toupper((unsigned char)*p);
+ Info(3, "Inverting %s\n",temp);
+ if (strstr(temp,"SCK"))
+ sck_invert=1;