diff options
author | Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> | 2009-11-06 18:35:17 +0100 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> | 2010-03-08 12:52:24 +0100 |
commit | 4e16a285c7c34732ba95fb5ec201e6f11cf88bef (patch) | |
tree | 9fcc4fc18c0c6a36728a511eacd34535bbec8178 /source4/lib/ldb/common/ldb.c | |
parent | 30ff229a3e32549073424b423302e976c988d563 (diff) | |
download | samba-4e16a285c7c34732ba95fb5ec201e6f11cf88bef.tar.gz samba-4e16a285c7c34732ba95fb5ec201e6f11cf88bef.tar.bz2 samba-4e16a285c7c34732ba95fb5ec201e6f11cf88bef.zip |
LDB:common - Change counters to "unsigned" where appropriate
To count LDB objects use variables of type "unsigned (int)" or "long long int"
on binary or downto searches.
To count characters in strings use "size_t".
To calculate differences between pointers use "ptrdiff_t".
Diffstat (limited to 'source4/lib/ldb/common/ldb.c')
-rw-r--r-- | source4/lib/ldb/common/ldb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/lib/ldb/common/ldb.c b/source4/lib/ldb/common/ldb.c index 94fd6cde1e..bbb3b79e6c 100644 --- a/source4/lib/ldb/common/ldb.c +++ b/source4/lib/ldb/common/ldb.c @@ -665,7 +665,7 @@ int ldb_request_get_status(struct ldb_request *req) static void ldb_trace_request(struct ldb_context *ldb, struct ldb_request *req) { TALLOC_CTX *tmp_ctx = talloc_new(req); - int i; + unsigned int i; switch (req->operation) { case LDB_SEARCH: @@ -845,7 +845,7 @@ int ldb_search_default_callback(struct ldb_request *req, struct ldb_reply *ares) { struct ldb_result *res; - int n; + unsigned int n; res = talloc_get_type(req->context, struct ldb_result); |