summaryrefslogtreecommitdiff
path: root/source4/dns_server
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2014-07-31 11:32:02 +0200
committerKarolin Seeger <kseeger@samba.org>2014-09-08 07:49:10 +0200
commit256349ddfea8f16eaabf92a311ae247abeff5869 (patch)
treecd1f9e1d164b77990bec0ed5deed3e3b4eb0024b /source4/dns_server
parentf3df058da8f9ddbe01fa13dbad03fa091c94bf01 (diff)
downloadsamba-256349ddfea8f16eaabf92a311ae247abeff5869.tar.gz
s4:dns_server: remove const from dns_replace_records()
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)
Diffstat (limited to 'source4/dns_server')
-rw-r--r--source4/dns_server/dns_server.h2
-rw-r--r--source4/dns_server/dns_utils.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source4/dns_server/dns_server.h b/source4/dns_server/dns_server.h
index 24596161b7..12ccc9b899 100644
--- a/source4/dns_server/dns_server.h
+++ b/source4/dns_server/dns_server.h
@@ -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,
diff --git a/source4/dns_server/dns_utils.c b/source4/dns_server/dns_utils.c
index 3bfa98b762..cf1adccf83 100644
--- a/source4/dns_server/dns_utils.c
+++ b/source4/dns_server/dns_utils.c
@@ -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;