From 6bbdb91741145713e0d3167fbc6d2111ed866c50 Mon Sep 17 00:00:00 2001 From: dholland Date: Sat, 3 Sep 2011 21:59:18 +0000 Subject: [PATCH] Use toupper() correctly. Caught by clang. --- cross/uisp/distinfo | 3 ++- cross/uisp/patches/patch-src_dapa_c | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 cross/uisp/patches/patch-src_dapa_c diff --git a/cross/uisp/distinfo b/cross/uisp/distinfo index 97a0725cd749..c65cfa21831e 100644 --- a/cross/uisp/distinfo +++ b/cross/uisp/distinfo @@ -1,7 +1,8 @@ -$NetBSD: distinfo,v 1.3 2011/08/29 01:27:29 dholland Exp $ +$NetBSD: distinfo,v 1.4 2011/09/03 21:59:18 dholland Exp $ SHA1 (uisp-20040311.tar.bz2) = 8e4c1e05d2f9a962b8969fc76d8b448c9e0751d4 RMD160 (uisp-20040311.tar.bz2) = 4f45d375e942376a2508232cf787f94ab7f8995b Size (uisp-20040311.tar.bz2) = 142973 bytes SHA1 (patch-aa) = 60d42fc897b8c77c8396823fd9b26b95adb68a77 SHA1 (patch-src_avr_h) = f5ac07e1a8e3865e7c6bd3af86a1777bb068b5fd +SHA1 (patch-src_dapa_c) = bc3fd2ecde373af2a2a3864f07efedd1177ecca0 diff --git a/cross/uisp/patches/patch-src_dapa_c b/cross/uisp/patches/patch-src_dapa_c new file mode 100644 index 000000000000..a36b2db12846 --- /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;