From 89f7196a6e1655ad7c1f875b7559d35ff3a8db90 Mon Sep 17 00:00:00 2001 From: Kathleen King Date: Thu, 3 Jul 2014 10:53:19 -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/switch_core_media.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); } } }