diff options
-rw-r--r-- | source4/dns_server/dns_query.c | 5 | ||||
-rw-r--r-- | source4/dns_server/dns_server.c | 3 |
2 files changed, 3 insertions, 5 deletions
diff --git a/source4/dns_server/dns_query.c b/source4/dns_server/dns_query.c index bf82ae2e92..f730a70b75 100644 --- a/source4/dns_server/dns_query.c +++ b/source4/dns_server/dns_query.c @@ -40,7 +40,7 @@ static WERROR handle_question(struct dns_server *dns, static const char * const attrs[] = { "dnsRecord", NULL}; int ret; uint16_t ai = *ancount; - uint16_t ri; + unsigned int ri; struct ldb_message *msg = NULL; struct dnsp_DnssrvRpcRecord *recs; struct ldb_message_element *el; @@ -206,9 +206,8 @@ WERROR dns_server_process_query(struct dns_server *dns, struct dns_res_rec **nsrecs, uint16_t *nscount, struct dns_res_rec **additional, uint16_t *arcount) { - uint16_t num_answers=0; + uint16_t i, num_answers=0; struct dns_res_rec *ans=NULL; - int i; WERROR werror; ans = talloc_array(mem_ctx, struct dns_res_rec, 0); diff --git a/source4/dns_server/dns_server.c b/source4/dns_server/dns_server.c index 9146968127..635cd9507f 100644 --- a/source4/dns_server/dns_server.c +++ b/source4/dns_server/dns_server.c @@ -600,8 +600,7 @@ static void dns_task_init(struct task_server *task) struct ldb_result *res; struct ldb_dn *rootdn; static const char * const attrs[] = { "name", NULL}; - int i; - + unsigned int i; switch (lpcfg_server_role(task->lp_ctx)) { case ROLE_STANDALONE: |