mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-13 00:04:53 +00:00
Bug 6164 - Allow ast_skip_blanks on const strings without spewing warning
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7854 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -42,11 +42,11 @@ static force_inline int ast_strlen_zero(const char *s)
|
|||||||
\return a pointer to the first non-whitespace character
|
\return a pointer to the first non-whitespace character
|
||||||
*/
|
*/
|
||||||
AST_INLINE_API(
|
AST_INLINE_API(
|
||||||
char *ast_skip_blanks(char *str),
|
char *ast_skip_blanks(const char *str),
|
||||||
{
|
{
|
||||||
while (*str && *str < 33)
|
while (*str && *str < 33)
|
||||||
str++;
|
str++;
|
||||||
return str;
|
return (char *)str;
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user