git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52f023d
)
r13278: remove a silly strcasecmp() replacement
author
Andrew Tridgell
<tridge@samba.org>
Wed, 1 Feb 2006 05:24:19 +0000
(
05:24
+0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 18:51:42 +0000
(13:51 -0500)
(This used to be commit
6ec71ffbc141df398aff3e11c45e35e15192c66f
)
source4/lib/ldb/common/ldb_utf8.c
patch
|
blob
|
history
diff --git
a/source4/lib/ldb/common/ldb_utf8.c
b/source4/lib/ldb/common/ldb_utf8.c
index 4a29ac45f7b50cc265001d58e8553849df573b42..c2d31d440bb5636dff825a9630abcfe674ee92ca 100644
(file)
--- 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);
}
/*