Bug 6164 - Allow ast_skip_blanks on const strings without spewing warning
authorTilghman Lesher <tilghman@meg.abyt.es>
Sat, 7 Jan 2006 15:45:47 +0000 (15:45 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Sat, 7 Jan 2006 15:45:47 +0000 (15:45 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7854 65c4cc65-6c06-0410-ace0-fbb531ad65f3

include/asterisk/strings.h

index b7f9e71..5399c32 100644 (file)
@@ -42,11 +42,11 @@ static force_inline int ast_strlen_zero(const char *s)
   \return a pointer to the first non-whitespace character
  */
 AST_INLINE_API(
-char *ast_skip_blanks(char *str),
+char *ast_skip_blanks(const char *str),
 {
        while (*str && *str < 33)
                str++;
-       return str;
+       return (char *)str;
 }
 )