From d1854057559b8893eee71c7b52356d80a24eb72b Mon Sep 17 00:00:00 2001 From: Brett Bryant Date: Tue, 8 Jul 2008 16:40:28 +0000 Subject: Janitor project to convert sizeof to ARRAY_LEN macro. (closes issue #13002) Reported by: caio1982 Patches: janitor_arraylen5.diff uploaded by caio1982 (license 22) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@129045 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- apps/app_meetme.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/app_meetme.c') diff --git a/apps/app_meetme.c b/apps/app_meetme.c index 25cc0727e..ee158b1fe 100644 --- a/apps/app_meetme.c +++ b/apps/app_meetme.c @@ -3101,7 +3101,7 @@ static int conf_exec(struct ast_channel *chan, void *data) /* Select first conference number not in use */ if (ast_strlen_zero(confno) && dynamic) { AST_LIST_LOCK(&confs); - for (i = 0; i < sizeof(conf_map) / sizeof(conf_map[0]); i++) { + for (i = 0; i < ARRAY_LEN(conf_map); i++) { if (!conf_map[i]) { snprintf(confno, sizeof(confno), "%d", i); conf_map[i] = 1; -- cgit v1.2.3