]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Revert "Test_cel: Fails when DONT_OPTIMIZE is off"
authorChris Savinovich <csavinovich@digium.com>
Thu, 14 Feb 2019 16:54:17 +0000 (10:54 -0600)
committerJoshua C. Colp <jcolp@digium.com>
Thu, 14 Feb 2019 17:03:21 +0000 (11:03 -0600)
This reverts commit 05b79d16ab93b038b39412e2570a21205eb499c4.

Change-Id: I2e64fc22c33b10cfd592681732fc67ae0669a301

include/asterisk/strings.h
main/strings.c

index aaf2737bff61475093ccfc79a46b2dc99c9f48ac..e4bef5f0f3ebbd1f345265a2fa8831108b53ae87 100644 (file)
@@ -1212,7 +1212,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
index a18bb4843b009c897fe198c9ca1f8e51d1d67a16..640af6123360f1478630801377f4cbb99bc36fb4 100644 (file)
@@ -421,18 +421,3 @@ int ast_vector_string_split(struct ast_vector_string *dest,
 
        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;
-}
-