summaryrefslogtreecommitdiffstats
path: root/daemon
diff options
context:
space:
mode:
authorTomáš Kopal <Tomas.Kopal@eccam.com>2021-03-17 11:18:33 +0100
committerGitHub <noreply@github.com>2021-03-17 12:18:33 +0200
commit757e418090e1038b183d3776aa8a3c55260369ca (patch)
treef53db26063920be1299776ae138140f9e94aa655 /daemon
parentde2ac5a34b1212c0b024dd9676816e19ea809485 (diff)
Rename abs to ABS to avoid clash with standard definitions. Fixes #10353. (#10354)
Diffstat (limited to 'daemon')
-rw-r--r--daemon/unit_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/unit_test.c b/daemon/unit_test.c
index e6a69e354d..9a17aa7622 100644
--- a/daemon/unit_test.c
+++ b/daemon/unit_test.c
@@ -371,7 +371,7 @@ int unit_test_str2ld() {
return -1;
}
}
- else if(mine != sys && abs(mine-sys) > 0.000001) {
+ else if(mine != sys && ABS(mine-sys) > 0.000001) {
fprintf(stderr, "Value '%s' is parsed as %" LONG_DOUBLE_MODIFIER ", but system believes it is %" LONG_DOUBLE_MODIFIER ", delta %" LONG_DOUBLE_MODIFIER ".\n", values[i], mine, sys, sys-mine);
return -1;
}