diff options
author | Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> | 2010-03-08 18:01:32 +0100 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> | 2010-03-08 18:53:24 +0100 |
commit | 8d3b7d418edc6955271d262bbdbf307a45b7fb7f (patch) | |
tree | 3c782ad11c689bdddec32330b5adeed726fe6348 /source4/lib/ldb/modules/asq.c | |
parent | df17e1b962d084315ebcba78a7ebe1d659781dbf (diff) | |
download | samba-8d3b7d418edc6955271d262bbdbf307a45b7fb7f.tar.gz samba-8d3b7d418edc6955271d262bbdbf307a45b7fb7f.tar.bz2 samba-8d3b7d418edc6955271d262bbdbf307a45b7fb7f.zip |
LDB:asq module - change counters to "unsigned" where appropriate
Diffstat (limited to 'source4/lib/ldb/modules/asq.c')
-rw-r--r-- | source4/lib/ldb/modules/asq.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/source4/lib/ldb/modules/asq.c b/source4/lib/ldb/modules/asq.c index 491868301c..6d1e88b67b 100644 --- a/source4/lib/ldb/modules/asq.c +++ b/source4/lib/ldb/modules/asq.c @@ -55,8 +55,8 @@ struct asq_context { struct ldb_reply *base_res; struct ldb_request **reqs; - int num_reqs; - int cur_req; + unsigned int num_reqs; + unsigned int cur_req; struct ldb_control **controls; }; @@ -85,7 +85,7 @@ static int asq_search_continue(struct asq_context *ac); static int asq_search_terminate(struct asq_context *ac) { struct ldb_asq_control *asq; - int i; + unsigned int i; if (ac->controls) { for (i = 0; ac->controls[i]; i++) /* count em */ ; @@ -250,7 +250,8 @@ static int asq_build_multiple_requests(struct asq_context *ac, bool *terminated) struct ldb_control *control; struct ldb_dn *dn; struct ldb_message_element *el; - int ret, i; + unsigned int i; + int ret; if (ac->base_res == NULL) { return LDB_ERR_NO_SUCH_OBJECT; |