From: Anthony Minessale Date: Wed, 19 Jul 2006 18:34:28 +0000 (+0000) Subject: name change for c++ compate X-Git-Tag: v1.0-beta1~2510 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=72d0128f95f9b3770f1b36736f1bd40d029bdb3c;p=thirdparty%2Ffreeswitch.git name change for c++ compate git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1988 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/include/switch_core.h b/src/include/switch_core.h index 1ff6263798..d4e6f1421c 100644 --- a/src/include/switch_core.h +++ b/src/include/switch_core.h @@ -121,7 +121,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_init(char *console, const char **err \param new new value (if > 0) \return the current session limit */ -SWITCH_DECLARE(uint32_t) switch_core_session_limit(uint32_t new); +SWITCH_DECLARE(uint32_t) switch_core_session_limit(uint32_t new_limit); /*! \brief Destroy the core diff --git a/src/switch_core.c b/src/switch_core.c index 596b5e9aa0..7126abb0e2 100644 --- a/src/switch_core.c +++ b/src/switch_core.c @@ -2926,10 +2926,10 @@ SWITCH_DECLARE(void) switch_core_set_globals(void) } -SWITCH_DECLARE(uint32_t) switch_core_session_limit(uint32_t new) +SWITCH_DECLARE(uint32_t) switch_core_session_limit(uint32_t new_limit) { - if (new) { - runtime.session_limit = new; + if (new_limit) { + runtime.session_limit = new_limit; } return runtime.session_limit;