diff options
author | Tim Potter <tpot@samba.org> | 2005-07-22 11:16:32 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:29:57 -0500 |
commit | a33c02612ad12b27ba2da1d3b9be0fb9bb339367 (patch) | |
tree | 7da362a7344e51b7f8bbe9afbeed3db04bb2af40 /source4/dsdb/samdb | |
parent | 2c457eca252fd62a3429ca3db172b85c534bd2d7 (diff) | |
download | samba-a33c02612ad12b27ba2da1d3b9be0fb9bb339367.tar.gz samba-a33c02612ad12b27ba2da1d3b9be0fb9bb339367.tar.bz2 samba-a33c02612ad12b27ba2da1d3b9be0fb9bb339367.zip |
r8713: Experiment to try and fix warnings on 64-bit machines without breaking
32-bit ones. Yes, this weird looking macros are part of C99.
(This used to be commit 7b316f119b8486b75ebe63b185c50fab82313e58)
Diffstat (limited to 'source4/dsdb/samdb')
-rw-r--r-- | source4/dsdb/samdb/samdb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/dsdb/samdb/samdb.c b/source4/dsdb/samdb/samdb.c index 448e4292aa..7811ca1965 100644 --- a/source4/dsdb/samdb/samdb.c +++ b/source4/dsdb/samdb/samdb.c @@ -852,7 +852,7 @@ int samdb_msg_add_uint(struct ldb_context *sam_ldb, TALLOC_CTX *mem_ctx, struct int samdb_msg_add_int64(struct ldb_context *sam_ldb, TALLOC_CTX *mem_ctx, struct ldb_message *msg, const char *attr_name, int64_t v) { - const char *s = talloc_asprintf(mem_ctx, "%lld", v); + const char *s = talloc_asprintf(mem_ctx, "%PRIi64", v); return samdb_msg_add_string(sam_ldb, mem_ctx, msg, attr_name, s); } @@ -862,7 +862,7 @@ int samdb_msg_add_int64(struct ldb_context *sam_ldb, TALLOC_CTX *mem_ctx, struct int samdb_msg_add_uint64(struct ldb_context *sam_ldb, TALLOC_CTX *mem_ctx, struct ldb_message *msg, const char *attr_name, uint64_t v) { - const char *s = talloc_asprintf(mem_ctx, "%llu", v); + const char *s = talloc_asprintf(mem_ctx, "%PRIu64", v); return samdb_msg_add_string(sam_ldb, mem_ctx, msg, attr_name, s); } |