code before declaration.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1246 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
fc8b3d1c5f
commit
49783ee5c1
|
@ -318,15 +318,15 @@ SWITCH_DECLARE(switch_status) switch_loadable_module_build_dynamic(char *filenam
|
||||||
switch_module_shutdown_t switch_module_shutdown)
|
switch_module_shutdown_t switch_module_shutdown)
|
||||||
{
|
{
|
||||||
switch_loadable_module *module = NULL;
|
switch_loadable_module *module = NULL;
|
||||||
|
switch_module_load_t load_func_ptr = NULL;
|
||||||
|
int loading = 1;
|
||||||
|
const char *err = NULL;
|
||||||
|
switch_loadable_module_interface *interface = NULL;
|
||||||
|
|
||||||
if ((module = switch_core_permenant_alloc(sizeof(switch_loadable_module))) == 0) {
|
if ((module = switch_core_permenant_alloc(sizeof(switch_loadable_module))) == 0) {
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CONSOLE, "Couldn't allocate memory\n");
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CONSOLE, "Couldn't allocate memory\n");
|
||||||
return SWITCH_STATUS_GENERR;
|
return SWITCH_STATUS_GENERR;
|
||||||
}
|
}
|
||||||
switch_module_load_t load_func_ptr = NULL;
|
|
||||||
int loading = 1;
|
|
||||||
const char *err = NULL;
|
|
||||||
switch_loadable_module_interface *interface = NULL;
|
|
||||||
|
|
||||||
while (loading) {
|
while (loading) {
|
||||||
load_func_ptr = (switch_module_load_t) switch_module_load;
|
load_func_ptr = (switch_module_load_t) switch_module_load;
|
||||||
|
|
Loading…
Reference in New Issue