From 85699480b3318978f724d6aec3fe00b742a6db78 Mon Sep 17 00:00:00 2001 From: Kathleen King Date: Thu, 3 Jul 2014 14:41:24 -0700 Subject: [PATCH] Fixed trucation of value warning. There was a parameter mismatch between abs(), which expects an int, and atol() which returns a long. Since max_drift is defined as an int, there is no need to pars q as a long rather than an int. --- src/mod/endpoints/mod_sofia/rtp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/endpoints/mod_sofia/rtp.c b/src/mod/endpoints/mod_sofia/rtp.c index 3f704c5f10..897534970e 100644 --- a/src/mod/endpoints/mod_sofia/rtp.c +++ b/src/mod/endpoints/mod_sofia/rtp.c @@ -622,7 +622,7 @@ static switch_status_t channel_receive_message(switch_core_session_t *session, s maxlen = atol(p); if ((q = strchr(p, ':'))) { q++; - max_drift = abs(atol(q)); + max_drift = abs(atoi(q)); } } }