blob: 0c084bd60a5575a3111319d6b880a05cb1b2aca8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
$NetBSD: patch-include_asterisk_strings.h,v 1.2 2017/06/04 07:51:27 jnemeth Exp $
--- include/asterisk/strings.h.orig 2017-05-30 17:44:16.000000000 +0000
+++ include/asterisk/strings.h
@@ -1168,7 +1168,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;
}
@@ -1244,7 +1244,7 @@ static force_inline int attribute_pure a
unsigned int hash = 5381;
while (*str) {
- hash = hash * 33 ^ (unsigned char) tolower(*str++);
+ hash = hash * 33 ^ tolower((unsigned char)*str++);
}
return ast_str_hash_restrict(hash);
|