diff options
author | dholland <dholland@pkgsrc.org> | 2011-09-03 21:59:18 +0000 |
---|---|---|
committer | dholland <dholland@pkgsrc.org> | 2011-09-03 21:59:18 +0000 |
commit | 5392d8221482d78298444969540bfbdc54a9f3b7 (patch) | |
tree | dbe39a2ccdc15a7c97b3b341674a1f9eafe6079d | |
parent | 906c797bc5f85afad23a8d36cb8d97b825dea457 (diff) | |
download | pkgsrc-5392d8221482d78298444969540bfbdc54a9f3b7.tar.gz |
Use toupper() correctly. Caught by clang.
-rw-r--r-- | cross/uisp/distinfo | 3 | ||||
-rw-r--r-- | cross/uisp/patches/patch-src_dapa_c | 15 |
2 files changed, 17 insertions, 1 deletions
diff --git a/cross/uisp/distinfo b/cross/uisp/distinfo index 97a0725cd74..c65cfa21831 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 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; |