From 606a447503defdeddc84ae03e06b392517c840c5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Matthias=20Dieter=20Walln=C3=B6fer?= Date: Fri, 29 Oct 2010 11:26:47 +0200 Subject: [PATCH] s4:torture/rpc/samr.c - fix NTTIME warnings by casts MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit And also the format specifier is wrong since NTTIME is "uint64_t" and therefore unsigned. Autobuild-User: Matthias Dieter Wallnöfer Autobuild-Date: Fri Oct 29 10:36:46 UTC 2010 on sn-devel-104 --- source4/torture/rpc/samr.c | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/source4/torture/rpc/samr.c b/source4/torture/rpc/samr.c index 9675237e945..223146ee4ee 100644 --- a/source4/torture/rpc/samr.c +++ b/source4/torture/rpc/samr.c @@ -2831,7 +2831,8 @@ static bool test_QueryUserInfo_pwdlastset(struct dcerpc_binding_handle *b, *pwdlastset = pwdlastset21; - torture_comment(tctx, "(pwdlastset: %lld)\n", *pwdlastset); + torture_comment(tctx, "(pwdlastset: %llu)\n", + (unsigned long long) *pwdlastset); return true; } @@ -3207,8 +3208,8 @@ static bool test_SetPassword_pwdlastset(struct dcerpc_pipe *p, default: if (pwdlastset_new != 0) { torture_warning(tctx, "pwdLastSet test failed: " - "expected pwdLastSet 0 but got %lld\n", - pwdlastset_old); + "expected pwdLastSet 0 but got %llu\n", + (unsigned long long) pwdlastset_old); ret = false; } break; @@ -3275,14 +3276,15 @@ static bool test_SetPassword_pwdlastset(struct dcerpc_pipe *p, default: if (pwdlastset_old >= pwdlastset_new) { torture_warning(tctx, "pwdLastSet test failed: " - "expected last pwdlastset (%lld) < new pwdlastset (%lld)\n", - pwdlastset_old, pwdlastset_new); + "expected last pwdlastset (%llu) < new pwdlastset (%llu)\n", + (unsigned long long) pwdlastset_old, + (unsigned long long) pwdlastset_new); ret = false; } if (pwdlastset_new == 0) { torture_warning(tctx, "pwdLastSet test failed: " - "expected non-0 pwdlastset, got: %lld\n", - pwdlastset_new); + "expected non-0 pwdlastset, got: %llu\n", + (unsigned long long) pwdlastset_new); ret = false; } break; @@ -3350,14 +3352,15 @@ static bool test_SetPassword_pwdlastset(struct dcerpc_pipe *p, default: if (pwdlastset_old >= pwdlastset_new) { torture_warning(tctx, "pwdLastSet test failed: " - "expected last pwdlastset (%lld) < new pwdlastset (%lld)\n", - pwdlastset_old, pwdlastset_new); + "expected last pwdlastset (%llu) < new pwdlastset (%llu)\n", + (unsigned long long) pwdlastset_old, + (unsigned long long) pwdlastset_new); ret = false; } if (pwdlastset_new == 0) { torture_warning(tctx, "pwdLastSet test failed: " - "expected non-0 pwdlastset, got: %lld\n", - pwdlastset_new); + "expected non-0 pwdlastset, got: %llu\n", + (unsigned long long) pwdlastset_new); ret = false; } break; @@ -3433,8 +3436,8 @@ static bool test_SetPassword_pwdlastset(struct dcerpc_pipe *p, default: if (pwdlastset_new != 0) { torture_warning(tctx, "pwdLastSet test failed: " - "expected pwdLastSet 0, got %lld\n", - pwdlastset_old); + "expected pwdLastSet 0, got %llu\n", + (unsigned long long) pwdlastset_old); ret = false; } break; -- 2.34.1