s4:dns_server: remove const from dns_replace_records()
authorStefan Metzmacher <metze@samba.org>
Thu, 31 Jul 2014 09:32:02 +0000 (11:32 +0200)
committerKarolin Seeger <kseeger@samba.org>
Mon, 8 Sep 2014 05:49:10 +0000 (07:49 +0200)
All callers are find we the record array gets modified.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=10749

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
(cherry picked from commit 7e7df78bd7ae5575da7443b45c0e2e4167eebde2)

source4/dns_server/dns_server.h
source4/dns_server/dns_utils.c

index 24596161b75cbd835baa8e71f4c8c7261066a19e..12ccc9b8999a2c3b1c3d2b1269554d523951566a 100644 (file)
@@ -101,7 +101,7 @@ WERROR dns_replace_records(struct dns_server *dns,
                           TALLOC_CTX *mem_ctx,
                           struct ldb_dn *dn,
                           bool needs_add,
-                          const struct dnsp_DnssrvRpcRecord *records,
+                          struct dnsp_DnssrvRpcRecord *records,
                           uint16_t rec_count);
 WERROR dns_name2dn(struct dns_server *dns,
                   TALLOC_CTX *mem_ctx,
index 3bfa98b76216c07e0e7d21f2f05f375adaeb04ad..cf1adccf83d441b0f27c5ec6d81c9f6d48e50add 100644 (file)
@@ -161,7 +161,7 @@ WERROR dns_replace_records(struct dns_server *dns,
                           TALLOC_CTX *mem_ctx,
                           struct ldb_dn *dn,
                           bool needs_add,
-                          const struct dnsp_DnssrvRpcRecord *records,
+                          struct dnsp_DnssrvRpcRecord *records,
                           uint16_t rec_count)
 {
        struct ldb_message_element *el;