[svn-commits] trunk - r7854 /trunk/include/asterisk/strings.h
svn-commits at lists.digium.com
svn-commits at lists.digium.com
Sat Jan 7 09:45:48 CST 2006
Author: tilghman
Date: Sat Jan 7 09:45:47 2006
New Revision: 7854
URL: http://svn.digium.com/view/asterisk?rev=7854&view=rev
Log:
Bug 6164 - Allow ast_skip_blanks on const strings without spewing warning
Modified:
trunk/include/asterisk/strings.h
Modified: trunk/include/asterisk/strings.h
URL: http://svn.digium.com/view/asterisk/trunk/include/asterisk/strings.h?rev=7854&r1=7853&r2=7854&view=diff
==============================================================================
--- trunk/include/asterisk/strings.h (original)
+++ trunk/include/asterisk/strings.h Sat Jan 7 09:45:47 2006
@@ -42,11 +42,11 @@
\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;
}
)
More information about the svn-commits
mailing list