From 72d0128f95f9b3770f1b36736f1bd40d029bdb3c Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Wed, 19 Jul 2006 18:34:28 +0000 Subject: [PATCH] name change for c++ compate git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1988 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/include/switch_core.h | 2 +- src/switch_core.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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;