summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Patou <mat@matws.net>2012-09-08 00:21:47 -0700
committerMatthieu Patou <mat@samba.org>2012-09-10 07:33:50 +0200
commite3b6b465ee4837de647c90eb6c1ac4af2047b06a (patch)
treeb90a0a3d8d9835dace54dcfff7700a9c7a8d44ea
parent9eb91a5055e6201e0bd808c634a3e31c7d075f91 (diff)
downloadsamba-e3b6b465ee4837de647c90eb6c1ac4af2047b06a.tar.gz
samba-e3b6b465ee4837de647c90eb6c1ac4af2047b06a.tar.bz2
samba-e3b6b465ee4837de647c90eb6c1ac4af2047b06a.zip
Force cast to long as on some platform tv_usec is 32bit long
Autobuild-User(master): Matthieu Patou <mat@samba.org> Autobuild-Date(master): Mon Sep 10 07:33:50 CEST 2012 on sn-devel-104
-rw-r--r--source4/torture/libnet/userman.c4
1 files 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; \
} \
}