From 4e16a285c7c34732ba95fb5ec201e6f11cf88bef Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Fri, 6 Nov 2009 18:35:17 +0100 Subject: 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". --- source4/lib/ldb/common/ldb_match.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/lib/ldb/common/ldb_match.c') diff --git a/source4/lib/ldb/common/ldb_match.c b/source4/lib/ldb/common/ldb_match.c index 4bd121a438a..74bc015d5a2 100644 --- a/source4/lib/ldb/common/ldb_match.c +++ b/source4/lib/ldb/common/ldb_match.c @@ -189,7 +189,7 @@ static int ldb_wildcard_compare(struct ldb_context *ldb, struct ldb_val *chunk; char *p, *g; uint8_t *save_p = NULL; - int c = 0; + unsigned int c = 0; a = ldb_schema_attribute_by_name(ldb, tree->u.substring.attr); @@ -304,7 +304,7 @@ static int ldb_match_extended(struct ldb_context *ldb, const struct ldb_parse_tree *tree, enum ldb_scope scope) { - int i; + unsigned int i; const struct { const char *oid; int (*comparator)(const struct ldb_val *, const struct ldb_val *); -- cgit