diff options
author | Love Hörnquist Åstrand <lha@samba.org> | 2005-07-12 22:22:59 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:20:14 -0500 |
commit | 61edb97bdfabf1ab313fbec5f47f5e6c8a79da1a (patch) | |
tree | 7b554690182fd2be55ba76a793227c3d3e46064c /source4/lib/ldb/common/ldb_utf8.c | |
parent | df426e5d4a33491c6b4bd8878ae3fbf29e728b5f (diff) | |
download | samba-61edb97bdfabf1ab313fbec5f47f5e6c8a79da1a.tar.gz samba-61edb97bdfabf1ab313fbec5f47f5e6c8a79da1a.tar.bz2 samba-61edb97bdfabf1ab313fbec5f47f5e6c8a79da1a.zip |
r8394: Make sure the argument to ctype is*(3) macros are unsigned char as
required by ISO C99.
(This used to be commit 56fd21c806e816cf4c3d23881f26474f858b45e2)
Diffstat (limited to 'source4/lib/ldb/common/ldb_utf8.c')
-rw-r--r-- | source4/lib/ldb/common/ldb_utf8.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/lib/ldb/common/ldb_utf8.c b/source4/lib/ldb/common/ldb_utf8.c index 38c117d7e0..5df5a6bba7 100644 --- a/source4/lib/ldb/common/ldb_utf8.c +++ b/source4/lib/ldb/common/ldb_utf8.c @@ -50,7 +50,7 @@ char *ldb_casefold(void *mem_ctx, const char *s) return NULL; } for (i=0;ret[i];i++) { - ret[i] = toupper(ret[i]); + ret[i] = toupper((unsigned char)ret[i]); } return ret; } @@ -63,7 +63,8 @@ int ldb_caseless_cmp(const char *s1, const char *s2) { int i; for (i=0;s1[i] != 0;i++) { - int c1 = toupper(s1[i]), c2 = toupper(s2[i]); + int c1 = toupper((unsigned char)s1[i]), + c2 = toupper((unsigned char)s2[i]); if (c1 != c2) { return c1 - c2; } |