[asterisk-commits] ivaxer: branch ivaxer/ast_storage r266435 - /team/ivaxer/ast_storage/main/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Sat May 29 11:06:00 CDT 2010
Author: ivaxer
Date: Sat May 29 11:05:58 2010
New Revision: 266435
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=266435
Log:
Replaced manual calculation of array length to ARRAY_LEN macro
Modified:
team/ivaxer/ast_storage/main/storage.c
Modified: team/ivaxer/ast_storage/main/storage.c
URL: http://svnview.digium.com/svn/asterisk/team/ivaxer/ast_storage/main/storage.c?view=diff&rev=266435&r1=266434&r2=266435
==============================================================================
--- team/ivaxer/ast_storage/main/storage.c (original)
+++ team/ivaxer/ast_storage/main/storage.c Sat May 29 11:05:58 2010
@@ -460,6 +460,6 @@
int ast_storage_engine_init(void)
{
__ast_register_storage(&null_se, NULL);
- ast_cli_register_multiple(cli_storage, sizeof(cli_storage) / sizeof(struct ast_cli_entry));
+ ast_cli_register_multiple(cli_storage, ARRAY_LEN(cli_storage));
return 0;
}
More information about the asterisk-commits
mailing list