s4:dns_server - fix counter types
authorMatthias Dieter Wallnöfer <mdw@samba.org>
Sat, 23 Oct 2010 13:52:34 +0000 (15:52 +0200)
committerMatthias Dieter Wallnöfer <mdw@samba.org>
Sat, 23 Oct 2010 14:37:29 +0000 (16:37 +0200)
source4/dns_server/dns_query.c
source4/dns_server/dns_server.c

index bf82ae2e92f4cb97f9d5ff084a289326e3fc2033..f730a70b75ea1a600fecbbe99a77b33b6f7b044d 100644 (file)
@@ -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);
index 91469681277b234f467e07863f17efb6f6039513..635cd9507fa181f01b7e09d7165c2065a21d9528 100644 (file)
@@ -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: