]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Fixed trucation of value warning.
authorKathleen King <kathleen.king@quentustech.com>
Thu, 3 Jul 2014 17:53:19 +0000 (10:53 -0700)
committerKathleen King <kathleen.king@quentustech.com>
Thu, 3 Jul 2014 17:53:19 +0000 (10:53 -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/switch_core_media.c

index cd0774eb832a3d74cbf3c9150f78a6326ff2d7b6..003b123cf534024828b296f55842113be63fedf1 100644 (file)
@@ -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));
                                                        }
                                                }
                                        }