diff options
author | Brett Bryant <bbryant@digium.com> | 2008-07-08 16:40:28 +0000 |
---|---|---|
committer | Brett Bryant <bbryant@digium.com> | 2008-07-08 16:40:28 +0000 |
commit | d1854057559b8893eee71c7b52356d80a24eb72b (patch) | |
tree | df03af827ea95734e2906e4737660d983e3e0b01 /formats | |
parent | 2ed6cea5515860b2b062a70c18b3118266716abd (diff) |
Janitor project to convert sizeof to ARRAY_LEN macro.
(closes issue #13002)
Reported by: caio1982
Patches:
janitor_arraylen5.diff uploaded by caio1982 (license 22)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@129045 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'formats')
-rw-r--r-- | formats/format_pcm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/formats/format_pcm.c b/formats/format_pcm.c index 3ecc1c16e..fdf0c32b8 100644 --- a/formats/format_pcm.c +++ b/formats/format_pcm.c @@ -472,9 +472,9 @@ static int load_module(void) int index; /* XXX better init ? */ - for (index = 0; index < (sizeof(ulaw_silence) / sizeof(ulaw_silence[0])); index++) + for (index = 0; index < ARRAY_LEN(ulaw_silence); index++) ulaw_silence[index] = AST_LIN2MU(0); - for (index = 0; index < (sizeof(alaw_silence) / sizeof(alaw_silence[0])); index++) + for (index = 0; index < ARRAY_LEN(alaw_silence); index++) alaw_silence[index] = AST_LIN2A(0); if ( ast_format_register(&pcm_f) |