]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:torture/ldb: fix the build on FreeBSD
authorStefan Metzmacher <metze@samba.org>
Wed, 6 Nov 2019 07:49:30 +0000 (08:49 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 27 Mar 2020 09:02:37 +0000 (09:02 +0000)
clock_t is 'int' instead' of 'long' there.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source4/torture/ldb/ldb.c

index cdf513a9feae729c80bcd0a8b69ab5e3e485b951..1fd5697a27afb40c64972059caaf99d22c20d31f 100644 (file)
@@ -1607,7 +1607,7 @@ static bool torture_ldb_pack_format_perf(struct torture_context *torture)
                }
        }
        diff = (clock() - start) * 1000 / CLOCKS_PER_SEC;
-       printf("\n%d pack runs took: %ldms\n", i, diff);
+       printf("\n%d pack runs took: %ldms\n", i, (long)diff);
 
        i = 0;
        start = clock();
@@ -1620,7 +1620,7 @@ static bool torture_ldb_pack_format_perf(struct torture_context *torture)
                }
        }
        diff = (clock() - start) * 1000 / CLOCKS_PER_SEC;
-       printf("%d unpack runs took: %ldms\n", i, diff);
+       printf("%d unpack runs took: %ldms\n", i, (long)diff);
 
        return true;
 }