From: Kathleen King Date: Thu, 3 Jul 2014 21:41:24 +0000 (-0700) Subject: Fixed trucation of value warning. X-Git-Tag: v1.5.13~1^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85699480b3318978f724d6aec3fe00b742a6db78;p=thirdparty%2Ffreeswitch.git 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. --- 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)); } } }