summaryrefslogtreecommitdiff
path: root/source4/lib/ldb
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-03-08 18:01:32 +0100
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-03-08 18:51:27 +0100
commitdf17e1b962d084315ebcba78a7ebe1d659781dbf (patch)
treea1e1ab74784a351b5fcf3815a2512f89a0c1bcd4 /source4/lib/ldb
parent8248069c91922c93bf9020cc1f94b8cf59c43e28 (diff)
downloadsamba-df17e1b962d084315ebcba78a7ebe1d659781dbf.tar.gz
samba-df17e1b962d084315ebcba78a7ebe1d659781dbf.tar.bz2
samba-df17e1b962d084315ebcba78a7ebe1d659781dbf.zip
LDB:sort module - change counters to "unsigned" where appropriate
Diffstat (limited to 'source4/lib/ldb')
-rw-r--r--source4/lib/ldb/modules/sort.c9
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);