From ce4f56dbdc07f3f31664f057888af93ea30284f2 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 1 Feb 2006 05:24:19 +0000 Subject: r13278: remove a silly strcasecmp() replacement (This used to be commit 6ec71ffbc141df398aff3e11c45e35e15192c66f) --- source4/lib/ldb/common/ldb_utf8.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'source4/lib/ldb/common') 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); } /* -- cgit