r8714: Oops - get it right this time!
authorTim Potter <tpot@samba.org>
Fri, 22 Jul 2005 11:19:55 +0000 (11:19 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:29:58 +0000 (13:29 -0500)
(This used to be commit 1d2b708da657a3f3c81bb60600f66bc359c2eab7)

source4/dsdb/samdb/samdb.c

index 7811ca19651122435f06695f21178bc7789b4e05..68ece6c51ddbfd58761531ea33a39d36c1c4ba07 100644 (file)
@@ -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, "%PRIi64", 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, "%PRIu64", v);
+       const char *s = talloc_asprintf(mem_ctx, "%"PRIu64, v);
        return samdb_msg_add_string(sam_ldb, mem_ctx, msg, attr_name, s);
 }