s4 dns: Get rid of const qualifier for prereqs, we do need to allocate those
authorKai Blin <kai@samba.org>
Thu, 8 Dec 2011 23:58:32 +0000 (00:58 +0100)
committerKai Blin <kai@samba.org>
Fri, 9 Dec 2011 00:59:28 +0000 (01:59 +0100)
source4/dns_server/dns_server.h
source4/dns_server/dns_update.c

index 28351e895571737f6f7bec015f971432e5d62319..d658b2a4925d2980716539c4969e38250a0dd8a1 100644 (file)
@@ -49,9 +49,9 @@ WERROR dns_server_process_query(struct dns_server *dns,
 WERROR dns_server_process_update(struct dns_server *dns,
                                 TALLOC_CTX *mem_ctx,
                                 struct dns_name_packet *in,
-                                const 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);
+                                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);
 
 uint8_t werr_to_dns_err(WERROR werror);
 bool dns_name_match(const char *zone, const char *name, size_t *host_part_len);
index a9fabf66d254241d4050413a78e6954495c95d7a..1f968ecff59c29cd330e948f452c92f2d979525a 100644 (file)
@@ -126,9 +126,9 @@ static WERROR update_prescan(const struct dns_name_question *zone,
 WERROR dns_server_process_update(struct dns_server *dns,
                                 TALLOC_CTX *mem_ctx,
                                 struct dns_name_packet *in,
-                                const 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)
+                                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)
 {
        struct dns_name_question *zone;
        const struct dns_server_zone *z;