Fri Dec 19 08:38:53 CST 2008 Pekka Pessi <first.last@nokia.com>

* nta.c: be consistent with maxsize and max_proceeding types
  
  Original patch by Mike Jerris



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11766 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2009-02-11 16:04:30 +00:00
parent 91dc5d5f54
commit 0ac71634bf
2 changed files with 4 additions and 4 deletions

View File

@ -1 +1 @@
Tue Jan 27 15:54:10 MST 2009
Wed Feb 11 10:03:28 CST 2009

View File

@ -167,8 +167,8 @@ struct nta_agent_s
url_t *sa_default_proxy; /**< Default outbound proxy */
unsigned sa_bad_req_mask; /**< Request error mask */
unsigned sa_bad_resp_mask; /**< Response error mask */
size_t sa_maxsize; /**< Maximum size of incoming messages */
size_t sa_max_proceeding; /**< Maximum size of proceeding queue */
usize_t sa_maxsize; /**< Maximum size of incoming messages */
usize_t sa_max_proceeding; /**< Maximum size of proceeding queue */
unsigned sa_udp_mtu; /**< Maximum size of outgoing UDP requests */
@ -1593,7 +1593,7 @@ int agent_set_params(nta_agent_t *agent, tagi_t *tags)
if (maxsize > UINT32_MAX) maxsize = UINT32_MAX;
agent->sa_maxsize = maxsize;
if (max_proceeding == 0) max_proceeding = UINT32_MAX;
if (max_proceeding == 0) max_proceeding = USIZE_MAX;
agent->sa_max_proceeding = max_proceeding;
if (max_forwards == 0) max_forwards = 70; /* Default value */