From: Stefan Metzmacher Date: Wed, 6 Nov 2019 07:49:30 +0000 (+0100) Subject: s4:torture/ldb: fix the build on FreeBSD X-Git-Tag: ldb-2.2.0~1192 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bc94d9878da15253d617f6f772eb0d8e02929620;p=thirdparty%2Fsamba.git s4:torture/ldb: fix the build on FreeBSD clock_t is 'int' instead' of 'long' there. Signed-off-by: Stefan Metzmacher Reviewed-by: Andreas Schneider --- diff --git a/source4/torture/ldb/ldb.c b/source4/torture/ldb/ldb.c index cdf513a9fea..1fd5697a27a 100644 --- a/source4/torture/ldb/ldb.c +++ b/source4/torture/ldb/ldb.c @@ -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; }