mirror of
https://github.com/samba-team/samba.git
synced 2025-03-07 00:58:40 +03:00
s4:torture/rpc/samr.c - fix NTTIME warnings by casts
And also the format specifier is wrong since NTTIME is "uint64_t" and therefore unsigned. Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Fri Oct 29 10:36:46 UTC 2010 on sn-devel-104
This commit is contained in:
parent
25301b7bf9
commit
606a447503
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user