diff options
author | Tilghman Lesher <tilghman@meg.abyt.es> | 2006-01-07 15:45:47 +0000 |
---|---|---|
committer | Tilghman Lesher <tilghman@meg.abyt.es> | 2006-01-07 15:45:47 +0000 |
commit | 33323ac720234c5ed8d2e38496acb3acee8379de (patch) | |
tree | 73722a8be3444c2802e62a480296697ab956803f /include | |
parent | d4ee9cb1a3583c8da3ad3185a0f4ec2dd0763e18 (diff) |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/strings.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asterisk/strings.h b/include/asterisk/strings.h index b7f9e718a..5399c32da 100644 --- a/include/asterisk/strings.h +++ b/include/asterisk/strings.h @@ -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; } ) |