mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 03:20:57 +00:00
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
This commit is contained in:
@@ -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];
|
||||
|
||||
|
Reference in New Issue
Block a user