diff options
author | Adam Jackson <ajax@redhat.com> | 2008-09-27 02:06:27 -0400 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2009-01-20 23:25:31 -0500 |
commit | 38bac54519a67ab1a276b66dbaa84a3327ccf827 (patch) | |
tree | e33b5c1e5b89f5d31295fbcc74a4d9cb216d4ec8 /src/util | |
parent | f431b4eb4dc743ccdf94b1b2ed858cc21f63c091 (diff) |
Remove some strcasecmp silliness
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/fontutil.c | 28 |
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 - |