svn commit: samba r13278 - in
branches/SAMBA_4_0/source/lib/ldb/common: .
tridge at samba.org
tridge at samba.org
Wed Feb 1 05:24:20 GMT 2006
Author: tridge
Date: 2006-02-01 05:24:19 +0000 (Wed, 01 Feb 2006)
New Revision: 13278
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=13278
Log:
remove a silly strcasecmp() replacement
Modified:
branches/SAMBA_4_0/source/lib/ldb/common/ldb_utf8.c
Changeset:
Modified: branches/SAMBA_4_0/source/lib/ldb/common/ldb_utf8.c
===================================================================
--- branches/SAMBA_4_0/source/lib/ldb/common/ldb_utf8.c 2006-02-01 05:22:44 UTC (rev 13277)
+++ branches/SAMBA_4_0/source/lib/ldb/common/ldb_utf8.c 2006-02-01 05:24:19 UTC (rev 13278)
@@ -59,15 +59,7 @@
*/
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);
}
/*
More information about the samba-cvs
mailing list