Start moving in changes from my resolve-shadow-warnings branch. Going to do

this in pieces so the diffs are a little bit smaller and more reviewable.

pbx/ and formats/ first.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@136298 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Sean Bright
2008-08-07 00:44:55 +00:00
parent 367dfcb0ab
commit b7a4db0ced
5 changed files with 129 additions and 129 deletions

View File

@@ -469,13 +469,13 @@ static const struct ast_format au_f = {
static int load_module(void)
{
int index;
int i;
/* XXX better init ? */
for (index = 0; index < ARRAY_LEN(ulaw_silence); index++)
ulaw_silence[index] = AST_LIN2MU(0);
for (index = 0; index < ARRAY_LEN(alaw_silence); index++)
alaw_silence[index] = AST_LIN2A(0);
for (i = 0; i < ARRAY_LEN(ulaw_silence); i++)
ulaw_silence[i] = AST_LIN2MU(0);
for (i = 0; i < ARRAY_LEN(alaw_silence); i++)
alaw_silence[i] = AST_LIN2A(0);
if ( ast_format_register(&pcm_f)
|| ast_format_register(&alaw_f)