pkgsrc/comms/asterisk15/patches/patch-include_asterisk_strings.h
joerg 73dae11255 Add Asterisk 15.4.1:
Asterisk is a complete PBX in software.  It provides all of the
features you would expect from a PBX and more. Asterisk does voice
over IP in three protocols, and can interoperate with almost all
standards-based telephony equipment using relatively inexpensive
hardware.

Asterisk provides Voicemail services with Directory, Call Conferencing,
Interactive Voice Response, Call Queuing. It has support for
three-way calling, caller ID services, ADSI, SIP and H.323 (as both
client and gateway).

This is a standard version.  It is scheduled to go to security
fixes only on October 3th, 2018, and EOL on October 3th, 2019.
See here for more information about Asterisk versions:
https://wiki.asterisk.org/wiki/display/AST/Asterisk+Versions
2018-07-16 21:53:04 +00:00

40 lines
1,023 B
C

$NetBSD: patch-include_asterisk_strings.h,v 1.1 2018/07/16 21:53:05 joerg Exp $
--- include/asterisk/strings.h.orig 2018-05-01 20:12:26.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);
@@ -1265,7 +1265,7 @@ static force_inline char *attribute_pure
}
for (; *str; ++str) {
- *str = tolower(*str);
+ *str = tolower((unsigned char)*str);
}
return str_orig;
@@ -1286,7 +1286,7 @@ static force_inline char *attribute_pure
}
for (; *str; ++str) {
- *str = toupper(*str);
+ *str = toupper((unsigned char)*str);
}
return str_orig;