From: Anthony Minessale Date: Thu, 25 Oct 2012 16:31:07 +0000 (-0500) Subject: fix type in config X-Git-Tag: v1.3.1~97 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c670ed6df58c1442cbfaac939b89547b1ecc0c26;p=thirdparty%2Ffreeswitch.git fix type in config --- diff --git a/src/switch_core.c b/src/switch_core.c index 8f0895fb9b..431ed8d3a1 100644 --- a/src/switch_core.c +++ b/src/switch_core.c @@ -1471,7 +1471,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_init(switch_core_flag_t flags, switc runtime.runlevel++; runtime.sql_buffer_len = 1024 * 32; - runtime.max_sql_buffer_len = 1024 * 1024 * 10; + runtime.max_sql_buffer_len = 1024 * 1024; runtime.dummy_cng_frame.data = runtime.dummy_data; runtime.dummy_cng_frame.datalen = sizeof(runtime.dummy_data); runtime.dummy_cng_frame.buflen = sizeof(runtime.dummy_data); @@ -1780,7 +1780,7 @@ static void switch_load_core_config(const char *file) if (tmp < runtime.sql_buffer_len) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Value is not larger than sql-buffer-len\n"); } else if (tmp >= 32000 && tmp < 10500000) { - runtime.sql_buffer_len = tmp; + runtime.max_sql_buffer_len = tmp; } else { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "max-sql-buffer-len: Value is not within rage 32k to 10m\n"); }