s4:dns_server: add some const to dns_server_process_update/dns_update_allowed arguments
authorStefan Metzmacher <metze@samba.org>
Tue, 14 Oct 2014 07:30:43 +0000 (09:30 +0200)
committerAmitay Isaacs <amitay@samba.org>
Tue, 18 Nov 2014 03:17:09 +0000 (04:17 +0100)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
source4/dns_server/dns_server.h
source4/dns_server/dns_update.c

index 12ccc9b8999a2c3b1c3d2b1269554d523951566a..19fd7a9a807fc20362fd438c49e02e4141d299c8 100644 (file)
@@ -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);
index b18c3c5ab0c5bdfc11ea3ead24609edb9e3ba239..c002b4d8fffd9f87248bf3d8eed59da5fb482347 100644 (file)
@@ -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)