diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-10-23 15:52:34 +0200 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-10-23 16:37:29 +0200 |
commit | a60965b879f4b4c7fc8507073c6000967b80b724 (patch) | |
tree | d1e4449e2c0dd3d4210e66e34d721ccaca815ac9 /source4/dns_server | |
parent | ee913f45683e66d4391944e034217a56d42e7ab5 (diff) | |
download | samba-a60965b879f4b4c7fc8507073c6000967b80b724.tar.gz samba-a60965b879f4b4c7fc8507073c6000967b80b724.tar.xz samba-a60965b879f4b4c7fc8507073c6000967b80b724.zip |
s4:dns_server - fix counter types
Diffstat (limited to 'source4/dns_server')
-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 bf82ae2e92f..f730a70b75e 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 91469681277..635cd9507fa 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: |