pkgsrc-ng/cross/uisp/patches/patch-src_dapa_c
2013-09-26 17:14:40 +02:00

16 lines
500 B
Plaintext

$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;