From: Kathleen King Date: Thu, 3 Jul 2014 17:53:19 +0000 (-0700) Subject: Fixed trucation of value warning. X-Git-Tag: v1.5.13~1^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=89f7196a6e1655ad7c1f875b7559d35ff3a8db90;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/switch_core_media.c b/src/switch_core_media.c index cd0774eb83..003b123cf5 100644 --- a/src/switch_core_media.c +++ b/src/switch_core_media.c @@ -7654,7 +7654,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_media_receive_message(switch_core_se maxlen = atol(p); if ((q = strchr(p, ':'))) { q++; - max_drift = abs(atol(q)); + max_drift = abs(atoi(q)); } } }