diff options
author | Matthew Jordan <mjordan@digium.com> | 2015-03-30 02:45:29 +0000 |
---|---|---|
committer | Matthew Jordan <mjordan@digium.com> | 2015-03-30 02:45:29 +0000 |
commit | 7bc2345fb16fb0ae616d4573cef6f08db54a2ba3 (patch) | |
tree | e53f2520ece32972d9d09f5746b9f6b495df3a8f /main/jitterbuf.c | |
parent | ce59fabd5c01a48b8f4fcd1d7522aef9f3fbe66d (diff) |
clang compiler warnings: Fix -Wabsolute-value warnings
This patch fixes several warnings caught by clang - in this case, usage of the
abs function on non-integer values. This patch uses labs and fabs, as
appropriate, in the various affected files.
Review: https://reviewboard.asterisk.org/r/4525
ASTERISK-24917
Reported by: dkdegroot
patches:
rb4525.patch submitted by dkdegroot (License 6600)
........
Merged revisions 433749 from http://svn.asterisk.org/svn/asterisk/branches/11
........
Merged revisions 433750 from http://svn.asterisk.org/svn/asterisk/branches/13
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@433751 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/jitterbuf.c')
-rw-r--r-- | main/jitterbuf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/jitterbuf.c b/main/jitterbuf.c index 4add56892..1bfe508da 100644 --- a/main/jitterbuf.c +++ b/main/jitterbuf.c @@ -139,7 +139,7 @@ static int check_resync(jitterbuf *jb, long ts, long now, long ms, const enum jb /* check for drastic change in delay */ if (jb->info.conf.resync_threshold != -1) { - if (abs(*delay - jb->info.last_delay) > threshold) { + if (labs(*delay - jb->info.last_delay) > threshold) { jb->info.cnt_delay_discont++; /* resync the jitterbuffer on 3 consecutive discontinuities, * or immediately if a control frame */ |