From ce2004d631bb7eb0aa838f07ef48465a6f199d22 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 13 Sep 2010 23:07:10 +1000 Subject: s4: fixed some printf format errors --- source4/lib/registry/ldb.c | 2 +- source4/lib/registry/util.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/lib/registry') diff --git a/source4/lib/registry/ldb.c b/source4/lib/registry/ldb.c index 91c6763902..09f39f6f30 100644 --- a/source4/lib/registry/ldb.c +++ b/source4/lib/registry/ldb.c @@ -201,7 +201,7 @@ static struct ldb_message *reg_ldb_pack_value(struct ldb_context *ctx, char *conv_str; conv_str = talloc_asprintf(msg, "0x%16.16llx", - BVAL(data.data, 0)); + (unsigned long long)BVAL(data.data, 0)); if (conv_str == NULL) { talloc_free(msg); return NULL; diff --git a/source4/lib/registry/util.c b/source4/lib/registry/util.c index fce420e625..5e7741aef5 100644 --- a/source4/lib/registry/util.c +++ b/source4/lib/registry/util.c @@ -45,7 +45,7 @@ _PUBLIC_ char *reg_val_data_string(TALLOC_CTX *mem_ctx, uint32_t type, case REG_QWORD: SMB_ASSERT(data.length == sizeof(uint64_t)); ret = talloc_asprintf(mem_ctx, "0x%16.16llx", - BVAL(data.data, 0)); + (unsigned long long)BVAL(data.data, 0)); break; case REG_BINARY: ret = data_blob_hex_string_upper(mem_ctx, &data); -- cgit