summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2007-08-23 02:10:17 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 15:02:27 -0500
commitdfa4e5f78440e375a9c47eab913c5980c1aa640b (patch)
tree496a2c84d63e79db71181f9383177ca82b322588 /source4/torture
parent32ce9de932c3f08b728bd9c743c70d702dc68a88 (diff)
downloadsamba-dfa4e5f78440e375a9c47eab913c5980c1aa640b.tar.gz
samba-dfa4e5f78440e375a9c47eab913c5980c1aa640b.tar.bz2
samba-dfa4e5f78440e375a9c47eab913c5980c1aa640b.zip
r24631: Fix up format warnings, found on my Fedora 7 x86_64 workstation.
Andrew Bartlett (This used to be commit 3d74d178bfd89127ff387939e848b240e638cc35)
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/ldap/uptodatevector.c6
-rw-r--r--source4/torture/unix/whoami.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/source4/torture/ldap/uptodatevector.c b/source4/torture/ldap/uptodatevector.c
index 470c2f247a..0ff9948cad 100644
--- a/source4/torture/ldap/uptodatevector.c
+++ b/source4/torture/ldap/uptodatevector.c
@@ -132,9 +132,9 @@ static bool test_check_uptodatevector(struct torture_context *torture,
}
torture_comment(torture, "[%u]: uSNChanged[%llu] description[%s] replUpToDateVector[%s]\n", i,
- samdb_result_uint64(r->msgs[0], "uSNChanged", 0),
- samdb_result_string(r->msgs[0], "description", NULL),
- (no_match ? "changed!: not ok" : "not changed: ok"));
+ (unsigned long long)samdb_result_uint64(r->msgs[0], "uSNChanged", 0),
+ samdb_result_string(r->msgs[0], "description", NULL),
+ (no_match ? "changed!: not ok" : "not changed: ok"));
if (no_match) {
NDR_PRINT_DEBUG(replUpToDateVectorBlob, &utdv1);
diff --git a/source4/torture/unix/whoami.c b/source4/torture/unix/whoami.c
index 28e220d363..8322e57bd1 100644
--- a/source4/torture/unix/whoami.c
+++ b/source4/torture/unix/whoami.c
@@ -185,8 +185,8 @@ static BOOL smb_raw_query_posix_whoami(void *mem_ctx,
printf("\tmapping_flags=0x%08x mapping_mask=0x%08x\n",
whoami->mapping_flags, whoami->mapping_mask);
- printf("\tserver UID=%lld GID=%lld\n",
- whoami->server_uid, whoami->server_gid);
+ printf("\tserver UID=%llu GID=%llu\n",
+ (unsigned long long)whoami->server_uid, (unsigned long long)whoami->server_gid);
printf("\t%u GIDs, %u SIDs, %u SID bytes\n",
whoami->num_gids, whoami->num_sids,
whoami->num_sid_bytes);