--- ./source4/torture/raw/qfsinfo.c.orig 2017-03-11 19:00:43.000000000 +0100 +++ ./source4/torture/raw/qfsinfo.c 2017-03-11 19:03:24.000000000 +0100 @@ -22,7 +22,7 @@ #include "torture/util.h" #include "torture/basic/proto.h" #include "torture/raw/proto.h" - +#include static struct { const char *name; @@ -206,7 +206,7 @@ s2->allocation.out.sectors_per_unit * s2->allocation.out.total_alloc_units * s2->allocation.out.bytes_per_sector / scale; - if (abs(size1 - size2) > 1) { + if (fabs(size1 - size2) > 1) { printf("Inconsistent total size in DSKATTR and ALLOCATION - size1=%.0f size2=%.0f\n", size1, size2); ret = false; @@ -228,7 +228,7 @@ s2->allocation.out.sectors_per_unit * s2->allocation.out.avail_alloc_units * s2->allocation.out.bytes_per_sector / scale; - if (abs(size1 - size2) > 1) { + if (fabs(size1 - size2) > 1) { printf("Inconsistent avail size in DSKATTR and ALLOCATION - size1=%.0f size2=%.0f\n", size1, size2); ret = false;