diff options
-rw-r--r-- | source4/lib/ldb/modules/sort.c | 9 |
1 files changed, 5 insertions, 4 deletions
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); |