diff options
author | Stefan Metzmacher <metze@samba.org> | 2019-11-06 08:49:30 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2020-03-27 09:02:37 +0000 |
commit | bc94d9878da15253d617f6f772eb0d8e02929620 (patch) | |
tree | 6b6d744a7650dee113bbddb960292f4978043c9d /source4/torture/ldb | |
parent | 1c0eed6ba7225fa6b655b3770228d2018fbeb3c4 (diff) | |
download | samba-bc94d9878da15253d617f6f772eb0d8e02929620.tar.gz |
s4:torture/ldb: fix the build on FreeBSD
clock_t is 'int' instead' of 'long' there.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source4/torture/ldb')
-rw-r--r-- | source4/torture/ldb/ldb.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |