diff options
author | Andrew Tridgell <tridge@samba.org> | 2006-02-01 05:24:19 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:51:42 -0500 |
commit | ce4f56dbdc07f3f31664f057888af93ea30284f2 (patch) | |
tree | 16555bdc979b0eba0f707f34e59e290f5ad96162 /source4/lib/ldb/common | |
parent | 52f023d4de6934cd0a4b91c10983aa8729331e22 (diff) | |
download | samba-ce4f56dbdc07f3f31664f057888af93ea30284f2.tar.gz samba-ce4f56dbdc07f3f31664f057888af93ea30284f2.tar.bz2 samba-ce4f56dbdc07f3f31664f057888af93ea30284f2.zip |
r13278: remove a silly strcasecmp() replacement
(This used to be commit 6ec71ffbc141df398aff3e11c45e35e15192c66f)
Diffstat (limited to 'source4/lib/ldb/common')
-rw-r--r-- | source4/lib/ldb/common/ldb_utf8.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/source4/lib/ldb/common/ldb_utf8.c b/source4/lib/ldb/common/ldb_utf8.c index 4a29ac45f7..c2d31d440b 100644 --- a/source4/lib/ldb/common/ldb_utf8.c +++ b/source4/lib/ldb/common/ldb_utf8.c @@ -59,15 +59,7 @@ char *ldb_casefold(void *mem_ctx, const char *s) */ int ldb_caseless_cmp(const char *s1, const char *s2) { - int i; - for (i=0;s1[i] != 0;i++) { - int c1 = toupper((unsigned char)s1[i]), - c2 = toupper((unsigned char)s2[i]); - if (c1 != c2) { - return c1 - c2; - } - } - return s2[i]; + return strcasecmp(s1, s2); } /* |