diff options
author | Eliel C. Sardanons <eliels@gmail.com> | 2008-12-05 10:31:25 +0000 |
---|---|---|
committer | Eliel C. Sardanons <eliels@gmail.com> | 2008-12-05 10:31:25 +0000 |
commit | 1e8e12efcf53065350a056894e1f47842211afb5 (patch) | |
tree | 40ec75ed7395fbf915cca96602558681eac3dd0d /apps/app_rpt.c | |
parent | da8069394b1e543167b88930e021a18267a6c923 (diff) |
Janitor, use ARRAY_LEN() when possible.
(closes issue #13990)
Reported by: eliel
Patches:
array_len.diff uploaded by eliel (license 64)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@161218 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_rpt.c')
-rw-r--r-- | apps/app_rpt.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/app_rpt.c b/apps/app_rpt.c index cc02c4807..381a15a65 100644 --- a/apps/app_rpt.c +++ b/apps/app_rpt.c @@ -15108,8 +15108,7 @@ static int unload_module(void) res = ast_unregister_application(app); #ifdef NEW_ASTERISK - ast_cli_unregister_multiple(rpt_cli,sizeof(rpt_cli) / - sizeof(struct ast_cli_entry)); + ast_cli_unregister_multiple(rpt_cli, ARRAY_LEN(rpt_cli)); #else /* Unregister cli extensions */ ast_cli_unregister(&cli_debug); @@ -15141,8 +15140,7 @@ static int load_module(void) ast_pthread_create(&rpt_master_thread,NULL,rpt_master,NULL); #ifdef NEW_ASTERISK - ast_cli_register_multiple(rpt_cli,sizeof(rpt_cli) / - sizeof(struct ast_cli_entry)); + ast_cli_register_multiple(rpt_cli, ARRAY_LEN(rpt_cli)); res = 0; #else /* Register cli extensions */ |