From 5b7933fe5e47ad0bc333b405f554c20f8cc2efed Mon Sep 17 00:00:00 2001 From: Brett Bryant Date: Fri, 11 Jul 2008 18:09:35 +0000 Subject: 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 --- main/threadstorage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main/threadstorage.c') diff --git a/main/threadstorage.c b/main/threadstorage.c index ae1719ff8..94ea45d4e 100644 --- a/main/threadstorage.c +++ b/main/threadstorage.c @@ -232,7 +232,7 @@ static struct ast_cli_entry cli[] = { void threadstorage_init(void) { - ast_cli_register_multiple(cli, sizeof(cli) / sizeof(cli[0])); + ast_cli_register_multiple(cli, ARRAY_LEN(cli)); } #endif /* !defined(DEBUG_THREADLOCALS) */ -- cgit v1.2.3