summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-10-23 15:52:34 +0200
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-10-23 16:37:29 +0200
commita60965b879f4b4c7fc8507073c6000967b80b724 (patch)
treed1e4449e2c0dd3d4210e66e34d721ccaca815ac9 /source4
parentee913f45683e66d4391944e034217a56d42e7ab5 (diff)
downloadsamba-a60965b879f4b4c7fc8507073c6000967b80b724.tar.gz
samba-a60965b879f4b4c7fc8507073c6000967b80b724.tar.bz2
samba-a60965b879f4b4c7fc8507073c6000967b80b724.zip
s4:dns_server - fix counter types
Diffstat (limited to 'source4')
-rw-r--r--source4/dns_server/dns_query.c5
-rw-r--r--source4/dns_server/dns_server.c3
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: