mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-02 19:16:15 +00:00
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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user