mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-25 20:54:15 +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:
1 parent
aef569172b
commit
85699480b3
1 file changed
+1
-1
@@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user