From e3b6b465ee4837de647c90eb6c1ac4af2047b06a Mon Sep 17 00:00:00 2001 From: Matthieu Patou Date: Sat, 8 Sep 2012 00:21:47 -0700 Subject: Force cast to long as on some platform tv_usec is 32bit long Autobuild-User(master): Matthieu Patou Autobuild-Date(master): Mon Sep 10 07:33:50 CEST 2012 on sn-devel-104 --- source4/torture/libnet/userman.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source4/torture/libnet/userman.c b/source4/torture/libnet/userman.c index 16e169f6d2..521ad9981c 100644 --- a/source4/torture/libnet/userman.c +++ b/source4/torture/libnet/userman.c @@ -250,10 +250,10 @@ static bool test_userdel(struct torture_context *tctx, if (timeval_compare(&t, mod->in.change.fld)) { \ torture_comment(tctx, "'%s' field does not match\n", #fld); \ torture_comment(tctx, "received: '%s (+%ld us)'\n", \ - timestring(mem_ctx, t.tv_sec), t.tv_usec); \ + timestring(mem_ctx, t.tv_sec), (long)t.tv_usec); \ torture_comment(tctx, "expected: '%s (+%ld us)'\n", \ timestring(mem_ctx, mod->in.change.fld->tv_sec), \ - mod->in.change.fld->tv_usec); \ + (long)mod->in.change.fld->tv_usec); \ return false; \ } \ } -- cgit