diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-11-01 11:17:37 +0100 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-11-01 11:31:33 +0100 |
commit | 2a25f7515a68938249beef47546465889ca1c734 (patch) | |
tree | 5ee7d705aeb666f0d201c99bebf28a715d9567d9 /source4/torture/drs/rpc/dssync.c | |
parent | c8bcf821191ab88a82954fd485087522d3c2ef05 (diff) | |
download | samba-2a25f7515a68938249beef47546465889ca1c734.tar.gz samba-2a25f7515a68938249beef47546465889ca1c734.tar.bz2 samba-2a25f7515a68938249beef47546465889ca1c734.zip |
s4:torture - suppress printf "%llu" on uint64_t variables warnings
The signed/unsignedness does match (always unsigned). The bitlength (64 bit) on
all regular platforms does also. Therefore simply add a cast to
"unsigned long long".
Diffstat (limited to 'source4/torture/drs/rpc/dssync.c')
-rw-r--r-- | source4/torture/drs/rpc/dssync.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/source4/torture/drs/rpc/dssync.c b/source4/torture/drs/rpc/dssync.c index 19a4baf849..522123c366 100644 --- a/source4/torture/drs/rpc/dssync.c +++ b/source4/torture/drs/rpc/dssync.c @@ -793,16 +793,16 @@ static bool test_GetNCChanges(struct torture_context *tctx, torture_comment(tctx, "start[%d] tmp_higest_usn: %llu , highest_usn: %llu\n", y, - r.in.req->req5.highwatermark.tmp_highest_usn, - r.in.req->req5.highwatermark.highest_usn); + (unsigned long long) r.in.req->req5.highwatermark.tmp_highest_usn, + (unsigned long long) r.in.req->req5.highwatermark.highest_usn); } if (r.in.level == 8) { torture_comment(tctx, "start[%d] tmp_higest_usn: %llu , highest_usn: %llu\n", y, - r.in.req->req8.highwatermark.tmp_highest_usn, - r.in.req->req8.highwatermark.highest_usn); + (unsigned long long) r.in.req->req8.highwatermark.tmp_highest_usn, + (unsigned long long) r.in.req->req8.highwatermark.highest_usn); } status = dcerpc_drsuapi_DsGetNCChanges_r(ctx->new_dc.drsuapi.drs_handle, ctx, &r); @@ -822,8 +822,8 @@ static bool test_GetNCChanges(struct torture_context *tctx, torture_comment(tctx, "end[%d] tmp_highest_usn: %llu , highest_usn: %llu\n", y, - ctr1->new_highwatermark.tmp_highest_usn, - ctr1->new_highwatermark.highest_usn); + (unsigned long long) ctr1->new_highwatermark.tmp_highest_usn, + (unsigned long long) ctr1->new_highwatermark.highest_usn); if (!test_analyse_objects(tctx, ctx, nc_dn_str, &ctr1->mapping_ctr, ctr1->object_count, ctr1->first_object, &gensec_skey)) { @@ -857,8 +857,8 @@ static bool test_GetNCChanges(struct torture_context *tctx, torture_comment(tctx, "end[%d] tmp_highest_usn: %llu , highest_usn: %llu\n", y, - ctr6->new_highwatermark.tmp_highest_usn, - ctr6->new_highwatermark.highest_usn); + (unsigned long long) ctr6->new_highwatermark.tmp_highest_usn, + (unsigned long long) ctr6->new_highwatermark.highest_usn); if (!test_analyse_objects(tctx, ctx, nc_dn_str, &ctr6->mapping_ctr, ctr6->object_count, ctr6->first_object, &gensec_skey)) { |