summaryrefslogtreecommitdiffstats
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2014-10-14 09:30:43 +0200
committerAmitay Isaacs <amitay@samba.org>2014-11-18 04:17:09 +0100
commit7e301c76ce0264bfec0545f9e677e1b3d2b62120 (patch)
tree6008090bcbcf49dac4aee6025739f4d13217c81b /source4
parenta62cc2ce447870b4f4ab6ebf9c8d999af054d06f (diff)
downloadsamba-7e301c76ce0264bfec0545f9e677e1b3d2b62120.tar.gz
samba-7e301c76ce0264bfec0545f9e677e1b3d2b62120.tar.xz
samba-7e301c76ce0264bfec0545f9e677e1b3d2b62120.zip
s4:dns_server: add some const to dns_server_process_update/dns_update_allowed arguments
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Diffstat (limited to 'source4')
-rw-r--r--source4/dns_server/dns_server.h4
-rw-r--r--source4/dns_server/dns_update.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/source4/dns_server/dns_server.h b/source4/dns_server/dns_server.h
index 12ccc9b899..19fd7a9a80 100644
--- a/source4/dns_server/dns_server.h
+++ b/source4/dns_server/dns_server.h
@@ -79,9 +79,9 @@ WERROR dns_server_process_query_recv(
struct dns_res_rec **additional, uint16_t *arcount);
WERROR dns_server_process_update(struct dns_server *dns,
- struct dns_request_state *state,
+ const struct dns_request_state *state,
TALLOC_CTX *mem_ctx,
- struct dns_name_packet *in,
+ const struct dns_name_packet *in,
struct dns_res_rec **prereqs, uint16_t *prereq_count,
struct dns_res_rec **updates, uint16_t *update_count,
struct dns_res_rec **additional, uint16_t *arcount);
diff --git a/source4/dns_server/dns_update.c b/source4/dns_server/dns_update.c
index b18c3c5ab0..c002b4d8ff 100644
--- a/source4/dns_server/dns_update.c
+++ b/source4/dns_server/dns_update.c
@@ -732,7 +732,7 @@ failed:
}
static WERROR dns_update_allowed(struct dns_server *dns,
- struct dns_request_state *state,
+ const struct dns_request_state *state,
struct dns_server_tkey **tkey)
{
if (lpcfg_allow_dns_updates(dns->task->lp_ctx) == DNS_UPDATE_ON) {
@@ -761,9 +761,9 @@ static WERROR dns_update_allowed(struct dns_server *dns,
WERROR dns_server_process_update(struct dns_server *dns,
- struct dns_request_state *state,
+ const struct dns_request_state *state,
TALLOC_CTX *mem_ctx,
- struct dns_name_packet *in,
+ const struct dns_name_packet *in,
struct dns_res_rec **prereqs, uint16_t *prereq_count,
struct dns_res_rec **updates, uint16_t *update_count,
struct dns_res_rec **additional, uint16_t *arcount)