pkgsrc-ng/comms/asterisk/patches/patch-include_asterisk_strings.h
2013-09-26 17:14:40 +02:00

23 lines
614 B
C

$NetBSD: patch-include_asterisk_strings.h,v 1.1 2013/06/14 04:26:55 jnemeth Exp $
--- include/asterisk/strings.h.orig 2013-01-09 20:07:07.000000000 +0000
+++ include/asterisk/strings.h
@@ -947,7 +947,7 @@ char *ast_tech_to_upper(char *dev_str),
}
for (pos = dev_str; *pos && *pos != '/'; pos++) {
- *pos = toupper(*pos);
+ *pos = toupper((unsigned char)*pos);
}
return dev_str;
}
@@ -1006,7 +1006,7 @@ static force_inline int attribute_pure a
int hash = 5381;
while (*str) {
- hash = hash * 33 ^ tolower(*str++);
+ hash = hash * 33 ^ tolower((unsigned char)*str++);
}
return abs(hash);