git.samba.org
/
ira
/
wip.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LDB:sort module - change counters to "unsigned" where appropriate
[ira/wip.git]
/
source4
/
lib
/
ldb
/
modules
/
sort.c
diff --git
a/source4/lib/ldb/modules/sort.c
b/source4/lib/ldb/modules/sort.c
index 4ef7a0cecb313a298a798375182bda91d8008a3c..f7c381f163a39b6e201b581e0ff2cf6214510d13 100644
(file)
--- 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;
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;
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;
{
struct ldb_control **controls;
struct ldb_sort_resp_control *resp;
- int i;
+
unsigned
int i;
if (*ctrls) {
controls = *ctrls;
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;
{
struct ldb_context *ldb;
struct ldb_reply *ares;
- int i, ret;
+ unsigned int i;
+ int ret;
ldb = ldb_module_get_ctx(ac->module);
ldb = ldb_module_get_ctx(ac->module);