mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-03 11:11:05 +00:00
Revert "Test_cel: Fails when DONT_OPTIMIZE is off"
This reverts commit 05b79d16ab
.
Change-Id: I2e64fc22c33b10cfd592681732fc67ae0669a301
This commit is contained in:
committed by
Joshua C. Colp
parent
aaee80adfe
commit
b327b0bbda
@@ -1212,7 +1212,19 @@ static force_inline int attribute_pure ast_str_case_hash(const char *str)
|
|||||||
*
|
*
|
||||||
* \retval str for convenience
|
* \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
|
* \brief Convert a string to all upper-case
|
||||||
|
@@ -421,18 +421,3 @@ int ast_vector_string_split(struct ast_vector_string *dest,
|
|||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
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