1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-03 22:56:33 +02:00

* gpgkeys_ldap.c (build_attrs), ksutil.c (ks_toupper, ks_strcasecmp),

ksutil.h: Remove the need for strcasecmp as the field tags are always
lowercase.
This commit is contained in:
David Shaw 2006-09-28 19:30:03 +00:00
parent 29f68725d0
commit 61765b20e6
4 changed files with 10 additions and 33 deletions

View file

@ -574,29 +574,3 @@ ks_hextobyte (const char *s)
return -1;
return c;
}
/* Non localized version of toupper. */
int
ks_toupper (int c)
{
if (c >= 'a' && c <= 'z')
c &= ~0x20;
return c;
}
/* Non localized version of strcasecmp. */
int
ks_strcasecmp (const char *a, const char *b)
{
if (a == b)
return 0;
for (; *a && *b; a++, b++)
{
if (*a != *b && ks_toupper (*a) != ks_toupper (*b))
break;
}
return *a == *b? 0 : (ks_toupper (*a) - ks_toupper (*b));
}