mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +00:00
Merge "Revert "Test_cel: Fails when DONT_OPTIMIZE is off"" into 13
This commit is contained in:
@@ -1257,7 +1257,19 @@ static force_inline int attribute_pure ast_str_case_hash(const char *str)
|
||||
*
|
||||
* \retval str for convenience
|
||||
*/
|
||||
char *attribute_pure ast_str_to_lower(char *str);
|
||||
static force_inline char *attribute_pure ast_str_to_lower(char *str)
|
||||
{
|
||||
char *str_orig = str;
|
||||
if (!str) {
|
||||
return str;
|
||||
}
|
||||
|
||||
for (; *str; ++str) {
|
||||
*str = tolower(*str);
|
||||
}
|
||||
|
||||
return str_orig;
|
||||
}
|
||||
|
||||
/*!
|
||||
* \brief Convert a string to all upper-case
|
||||
|
@@ -391,17 +391,3 @@ char *ast_read_line_from_buffer(char **buffer)
|
||||
|
||||
return start;
|
||||
}
|
||||
|
||||
char *attribute_pure ast_str_to_lower(char *str)
|
||||
{
|
||||
char *str_orig = str;
|
||||
if (!str) {
|
||||
return str;
|
||||
}
|
||||
|
||||
for (; *str; ++str) {
|
||||
*str = tolower(*str);
|
||||
}
|
||||
|
||||
return str_orig;
|
||||
}
|
||||
|
Reference in New Issue
Block a user