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_utf8.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_utf8.c')
-rw-r--r-- | source4/lib/ldb/common/ldb_utf8.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/lib/ldb/common/ldb_utf8.c b/source4/lib/ldb/common/ldb_utf8.c index 0a8a89ac1d..73ae71bb9c 100644 --- a/source4/lib/ldb/common/ldb_utf8.c +++ b/source4/lib/ldb/common/ldb_utf8.c @@ -55,7 +55,7 @@ void ldb_set_utf8_fns(struct ldb_context *ldb, */ char *ldb_casefold_default(void *context, void *mem_ctx, const char *s, size_t n) { - int i; + size_t i; char *ret = talloc_strndup(mem_ctx, s, n); if (!s) { errno = ENOMEM; @@ -84,7 +84,7 @@ char *ldb_casefold(struct ldb_context *ldb, void *mem_ctx, const char *s, size_t int ldb_valid_attr_name(const char *s) { - int i; + size_t i; if (!s || !s[0]) return 0; @@ -111,7 +111,7 @@ int ldb_valid_attr_name(const char *s) char *ldb_attr_casefold(void *mem_ctx, const char *s) { - int i; + size_t i; char *ret = talloc_strdup(mem_ctx, s); if (!ret) { errno = ENOMEM; |