]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Fixed trucation of value warning.
authorKathleen King <kathleen.king@quentustech.com>
Thu, 3 Jul 2014 21:41:24 +0000 (14:41 -0700)
committerKathleen King <kathleen.king@quentustech.com>
Thu, 3 Jul 2014 21:41:24 +0000 (14:41 -0700)
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/mod/endpoints/mod_sofia/rtp.c

index 3f704c5f101fe3152fa731daf4071ff7df447e80..897534970efeb810452c3d136540ab16a8ff6131 100644 (file)
@@ -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));
                                                        }
                                                }
                                        }