[asterisk-commits] russell: trunk r40031 -
/trunk/channels/chan_misdn.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Wed Aug 16 09:06:20 MST 2006
Author: russell
Date: Wed Aug 16 11:06:19 2006
New Revision: 40031
URL: http://svn.digium.com/view/asterisk?rev=40031&view=rev
Log:
instead of a for loop and ast_cli_(un)register, use ast_cli_(un)register_multiple()
Modified:
trunk/channels/chan_misdn.c
Modified: trunk/channels/chan_misdn.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_misdn.c?rev=40031&r1=40030&r2=40031&view=diff
==============================================================================
--- trunk/channels/chan_misdn.c (original)
+++ trunk/channels/chan_misdn.c Wed Aug 16 11:06:19 2006
@@ -4450,8 +4450,7 @@
if (!g_config_initialized) return 0;
- for (i = 0; i < (sizeof(chan_misdn_clis) / sizeof(struct ast_cli_entry)); ++i)
- ast_cli_unregister(chan_misdn_clis + i);
+ ast_cli_unregister_multiple(chan_misdn_clis, sizeof(chan_misdn_clis) / sizeof(chan_misdn_clis[0]));
/* ast_unregister_application("misdn_crypt"); */
ast_unregister_application("misdn_set_opt");
@@ -4549,8 +4548,7 @@
}
}
- for (i = 0; i < (sizeof(chan_misdn_clis) / sizeof(struct ast_cli_entry)); ++i)
- ast_cli_register(chan_misdn_clis + i);
+ ast_cli_register_multiple(chan_misdn_clis, sizeof(chan_misdn_clis) / sizeof(chan_misdn_clis[0]));
ast_register_application("misdn_set_opt", misdn_set_opt_exec, "misdn_set_opt",
"misdn_set_opt(:<opt><optarg>:<opt><optarg>..):\n"
More information about the asterisk-commits
mailing list