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 /main/abstract_jb.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 'main/abstract_jb.c')
-rw-r--r-- | main/abstract_jb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/abstract_jb.c b/main/abstract_jb.c index d7f9a57b7..4b04279a9 100644 --- a/main/abstract_jb.c +++ b/main/abstract_jb.c @@ -176,7 +176,7 @@ static void jb_choose_impl(struct ast_channel *chan) struct ast_jb *jb = &chan->jb; struct ast_jb_conf *jbconf = &jb->conf; struct ast_jb_impl *test_impl; - int i, avail_impl_count = sizeof(avail_impl) / sizeof(avail_impl[0]); + int i, avail_impl_count = ARRAY_LEN(avail_impl); jb->impl = &avail_impl[default_impl]; |