1
0
mirror of https://github.com/signalwire/freeswitch.git synced 2025-02-23 09:54:14 +00:00

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.
This commit is contained in:
Kathleen King 2014-07-03 10:53:19 -07:00
parent 39200cd13b
commit 89f7196a6e

@ -7654,7 +7654,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_media_receive_message(switch_core_se
maxlen = atol(p); maxlen = atol(p);
if ((q = strchr(p, ':'))) { if ((q = strchr(p, ':'))) {
q++; q++;
max_drift = abs(atol(q)); max_drift = abs(atoi(q));
} }
} }
} }