summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-10-29 11:26:47 +0200
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-10-29 10:36:46 +0000
commit606a447503defdeddc84ae03e06b392517c840c5 (patch)
tree1214bbe3064253dcd2850c0c9fcc11cdb9350bae
parent25301b7bf926c5f6f1e688e201d9dc9eee9f60ee (diff)
downloadsamba-606a447503defdeddc84ae03e06b392517c840c5.tar.gz
samba-606a447503defdeddc84ae03e06b392517c840c5.tar.bz2
samba-606a447503defdeddc84ae03e06b392517c840c5.zip
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
-rw-r--r--source4/torture/rpc/samr.c29
1 files changed, 16 insertions, 13 deletions
diff --git a/source4/torture/rpc/samr.c b/source4/torture/rpc/samr.c
index 9675237e94..223146ee4e 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;