summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2008-09-27 02:06:27 -0400
committerAdam Jackson <ajax@redhat.com>2009-01-20 23:25:31 -0500
commit38bac54519a67ab1a276b66dbaa84a3327ccf827 (patch)
treee33b5c1e5b89f5d31295fbcc74a4d9cb216d4ec8 /src/util
parentf431b4eb4dc743ccdf94b1b2ed858cc21f63c091 (diff)
Remove some strcasecmp silliness
Diffstat (limited to 'src/util')
-rw-r--r--src/util/fontutil.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/util/fontutil.c b/src/util/fontutil.c
index 181b1b2..aa89ce0 100644
--- a/src/util/fontutil.c
+++ b/src/util/fontutil.c
@@ -411,31 +411,3 @@ add_range(fsRange *newrange,
return Successful;
}
-
-/* It is difficult to find a good place for this. */
-#ifdef NEED_STRCASECMP
-int
-f_strcasecmp(const char *s1, const char *s2)
-{
- char c1, c2;
-
- if (*s1 == 0)
- if (*s2 == 0)
- return 0;
- else
- return 1;
-
- c1 = (isupper (*s1) ? tolower (*s1) : *s1);
- c2 = (isupper (*s2) ? tolower (*s2) : *s2);
- while (c1 == c2) {
- if (c1 == '\0')
- return 0;
- s1++;
- s2++;
- c1 = (isupper (*s1) ? tolower (*s1) : *s1);
- c2 = (isupper (*s2) ? tolower (*s2) : *s2);
- }
- return c1 - c2;
-}
-#endif
-