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 /apps/app_milliwatt.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 'apps/app_milliwatt.c')
-rw-r--r-- | apps/app_milliwatt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_milliwatt.c b/apps/app_milliwatt.c index 0fcd72151..89063096c 100644 --- a/apps/app_milliwatt.c +++ b/apps/app_milliwatt.c @@ -64,7 +64,7 @@ static void milliwatt_release(struct ast_channel *chan, void *data) static int milliwatt_generate(struct ast_channel *chan, void *data, int len, int samples) { unsigned char buf[AST_FRIENDLY_OFFSET + 640]; - const int maxsamples = sizeof (buf) / sizeof (buf[0]); + const int maxsamples = ARRAY_LEN(buf); int i, *indexp = (int *) data; struct ast_frame wf = { .frametype = AST_FRAME_VOICE, |