diff options
author | Tim Potter <tpot@samba.org> | 2005-11-30 02:08:15 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:46:52 -0500 |
commit | 03d301ead5f702872b8cb948b8cd01b0fa0db5f7 (patch) | |
tree | bfecef5d67424c708c0122b591458328f6138ce1 /source4/torture/nbt | |
parent | ad02b0bee4c8554499e02e93903e64d599c11475 (diff) | |
download | samba-03d301ead5f702872b8cb948b8cd01b0fa0db5f7.tar.gz samba-03d301ead5f702872b8cb948b8cd01b0fa0db5f7.tar.bz2 samba-03d301ead5f702872b8cb948b8cd01b0fa0db5f7.zip |
r11967: Fix more 64-bit warnings.
(This used to be commit 9c4436a124f874ae240feaf590141d48c33a635f)
Diffstat (limited to 'source4/torture/nbt')
-rw-r--r-- | source4/torture/nbt/winsreplication.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/torture/nbt/winsreplication.c b/source4/torture/nbt/winsreplication.c index 87b2c26211..4f18e3492b 100644 --- a/source4/torture/nbt/winsreplication.c +++ b/source4/torture/nbt/winsreplication.c @@ -47,7 +47,7 @@ #define CHECK_VALUE_UINT64(v, correct) do { \ if ((v) != (correct)) { \ printf("(%s) Incorrect value %s=%llu - should be %llu\n", \ - __location__, #v, v, correct); \ + __location__, #v, (long long)v, (long long)correct); \ ret = False; \ goto done; \ }} while (0) @@ -230,7 +230,7 @@ static void display_entry(TALLOC_CTX *mem_ctx, struct wrepl_name *name) printf("%s\n", nbt_name_string(mem_ctx, &name->name)); printf("\tTYPE:%u STATE:%u NODE:%u STATIC:%u VERSION_ID: %llu\n", - name->type, name->state, name->node, name->is_static, name->version_id); + name->type, name->state, name->node, name->is_static, (long long)name->version_id); printf("\tRAW_FLAGS: 0x%08X OWNER: %-15s\n", name->raw_flags, name->owner); for (i=0;i<name->num_addresses;i++) { @@ -296,8 +296,8 @@ static BOOL test_wins_replication(TALLOC_CTX *mem_ctx, const char *address) struct wrepl_wins_owner *partner = &pull_table.out.partners[i]; printf("%s max_version=%6llu min_version=%6llu type=%d\n", partner->address, - partner->max_version, - partner->min_version, + (long long)partner->max_version, + (long long)partner->min_version, partner->type); pull_names.in.assoc_ctx = associate.out.assoc_ctx; |