From df17e1b962d084315ebcba78a7ebe1d659781dbf Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Mon, 8 Mar 2010 18:01:32 +0100 Subject: LDB:sort module - change counters to "unsigned" where appropriate --- source4/lib/ldb/modules/sort.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'source4') diff --git a/source4/lib/ldb/modules/sort.c b/source4/lib/ldb/modules/sort.c index 4ef7a0cecb..f7c381f163 100644 --- a/source4/lib/ldb/modules/sort.c +++ b/source4/lib/ldb/modules/sort.c @@ -51,8 +51,8 @@ struct sort_context { struct ldb_request *req; struct ldb_message **msgs; char **referrals; - int num_msgs; - int num_refs; + unsigned int num_msgs; + unsigned int num_refs; const struct ldb_schema_attribute *a; int sort_result; @@ -62,7 +62,7 @@ static int build_response(void *mem_ctx, struct ldb_control ***ctrls, int result { struct ldb_control **controls; struct ldb_sort_resp_control *resp; - int i; + unsigned int i; if (*ctrls) { controls = *ctrls; @@ -137,7 +137,8 @@ static int server_sort_results(struct sort_context *ac) { struct ldb_context *ldb; struct ldb_reply *ares; - int i, ret; + unsigned int i; + int ret; ldb = ldb_module_get_ctx(ac->module); -- cgit