From 42f6d3ff4aef1e5bdbbfa2039f67573816dedc90 Mon Sep 17 00:00:00 2001 From: Andrew Thompson Date: Wed, 10 Jun 2009 21:17:42 +0000 Subject: [PATCH] Use SWITCH_XML_SECTION_MAX git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13751 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/event_handlers/mod_erlang_event/mod_erlang_event.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mod/event_handlers/mod_erlang_event/mod_erlang_event.c b/src/mod/event_handlers/mod_erlang_event/mod_erlang_event.c index 3ea86e9bdf..bd208e5fa2 100644 --- a/src/mod/event_handlers/mod_erlang_event/mod_erlang_event.c +++ b/src/mod/event_handlers/mod_erlang_event/mod_erlang_event.c @@ -110,7 +110,7 @@ static void remove_binding(listener_t *listener, erlang_pid *pid) { switch_mutex_lock(globals.listener_mutex); - switch_xml_set_binding_sections(bindings.search_binding, (1 << sizeof(switch_xml_section_enum_t))); + switch_xml_set_binding_sections(bindings.search_binding, SWITCH_XML_SECTION_MAX); for (ptr = bindings.head; ptr; lst = ptr, ptr = ptr->next) { if ((listener && ptr->listener == listener) || @@ -1400,7 +1400,7 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_erlang_event_load) memset(&bindings, 0, sizeof(bindings)); - if (switch_xml_bind_search_function_ret(erlang_fetch, (1 << sizeof(switch_xml_section_enum_t)), NULL, &bindings.search_binding) != SWITCH_STATUS_SUCCESS) { + if (switch_xml_bind_search_function_ret(erlang_fetch, SWITCH_XML_SECTION_MAX, NULL, &bindings.search_binding) != SWITCH_STATUS_SUCCESS) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Couldn't bind!\n"); close_socket(&listen_list.sockfd); return SWITCH_STATUS_GENERR;