diff options
author | Brett Bryant <bbryant@digium.com> | 2008-07-11 18:09:35 +0000 |
---|---|---|
committer | Brett Bryant <bbryant@digium.com> | 2008-07-11 18:09:35 +0000 |
commit | 5b7933fe5e47ad0bc333b405f554c20f8cc2efed (patch) | |
tree | d6654284a45ddbc17f083bedcf5d1055fd08f634 /codecs/codec_resample.c | |
parent | cb7df89042404cf3ca065a8bdeac07c25eaf8922 (diff) |
Janitor patch to change uses of sizeof to ARRAY_LEN
(closes issue #13054)
Reported by: pabelanger
Patches:
ARRAY_LEN.patch2 uploaded by pabelanger (license 224)
Tested by: seanbright
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@130129 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'codecs/codec_resample.c')
-rw-r--r-- | codecs/codec_resample.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/codecs/codec_resample.c b/codecs/codec_resample.c index f0ae03307..023b9b60d 100644 --- a/codecs/codec_resample.c +++ b/codecs/codec_resample.c @@ -166,7 +166,7 @@ static struct ast_frame *slin16_to_slin8_sample(void) .frametype = AST_FRAME_VOICE, .subclass = AST_FORMAT_SLINEAR16, .datalen = sizeof(slin16_slin8_ex), - .samples = sizeof(slin16_slin8_ex) / sizeof(slin16_slin8_ex[0]), + .samples = ARRAY_LEN(slin16_slin8_ex), .src = __PRETTY_FUNCTION__, .data.ptr = slin16_slin8_ex, }; @@ -180,7 +180,7 @@ static struct ast_frame *slin8_to_slin16_sample(void) .frametype = AST_FRAME_VOICE, .subclass = AST_FORMAT_SLINEAR, .datalen = sizeof(slin8_slin16_ex), - .samples = sizeof(slin8_slin16_ex) / sizeof(slin8_slin16_ex[0]), + .samples = ARRAY_LEN(slin8_slin16_ex), .src = __PRETTY_FUNCTION__, .data.ptr = slin8_slin16_ex, }; |