merge rizzo's patch to make compiler warnings stop the build, and fix a bunch of warnings found

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@10805 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Kevin P. Fleming
2006-02-22 22:53:49 +00:00
parent fdd33866b4
commit 6204abdae2
10 changed files with 99 additions and 75 deletions

View File

@@ -88,7 +88,7 @@ static int function_enum(struct ast_channel *chan, char *cmd, char *data,
args.options = "1";
/* strip any '-' signs from number */
for (p = args.number, s = p; *s; *s++) {
for (s = p = args.number; *s; s++) {
if (*s != '-')
*p++ = *s;
}