[Asterisk-code-review] Revert "Test cel: Fails when DONT OPTIMIZE is off" (asterisk[13.25])
George Joseph
asteriskteam at digium.com
Thu Feb 14 12:47:02 CST 2019
George Joseph has submitted this change and it was merged. ( https://gerrit.asterisk.org/10999 )
Change subject: Revert "Test_cel: Fails when DONT_OPTIMIZE is off"
......................................................................
Revert "Test_cel: Fails when DONT_OPTIMIZE is off"
This reverts commit 9b85882f04ed4b48e7bb318dbbb969d90159f13a.
Change-Id: I36cf159abb103502e48d6f8fd70d560d7f0bda56
---
M include/asterisk/strings.h
M main/strings.c
2 files changed, 13 insertions(+), 15 deletions(-)
Approvals:
George Joseph: Looks good to me, approved; Approved for Submit
diff --git a/include/asterisk/strings.h b/include/asterisk/strings.h
index 2d66716..85393b4 100644
--- a/include/asterisk/strings.h
+++ b/include/asterisk/strings.h
@@ -1257,7 +1257,19 @@
*
* \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
diff --git a/main/strings.c b/main/strings.c
index 43fbca4..8102c3e 100644
--- a/main/strings.c
+++ b/main/strings.c
@@ -391,17 +391,3 @@
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;
-}
--
To view, visit https://gerrit.asterisk.org/10999
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: 13.25
Gerrit-MessageType: merged
Gerrit-Change-Id: I36cf159abb103502e48d6f8fd70d560d7f0bda56
Gerrit-Change-Number: 10999
Gerrit-PatchSet: 1
Gerrit-Owner: Chris Savinovich <csavinovich at digium.com>
Gerrit-Reviewer: Friendly Automation (1000185)
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20190214/31074860/attachment-0001.html>
More information about the asterisk-code-review
mailing list