summaryrefslogtreecommitdiff
path: root/utils.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2014-05-26 16:10:33 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2014-05-26 16:10:33 -0700
commitdbbc677985e3a853f2e52b8a9d09660d3fa6d983 (patch)
tree0e7ed2fce21f53a4373b9ecebd8821cb868988aa /utils.c
parent7ca2572623fee8db916eff668ef3c852f2ce124a (diff)
Remove unused uStrCasePrefix fallback for strncasecmp
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'utils.c')
-rw-r--r--utils.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/utils.c b/utils.c
index 877fe92..aa2d8ad 100644
--- a/utils.c
+++ b/utils.c
@@ -244,26 +244,4 @@ uStrCaseCmp(const char *str1, const char *str2)
*s = '\0';
return (strcmp(buf1, buf2));
}
-
-int
-uStrCasePrefix(const char *prefix, const char *str)
-{
- char c1;
- char c2;
-
- while (((c1 = *prefix) != '\0') && ((c2 = *str) != '\0')) {
- if (isupper(c1))
- c1 = tolower(c1);
- if (isupper(c2))
- c2 = tolower(c2);
- if (c1 != c2)
- return 0;
- prefix++;
- str++;
- }
- if (c1 != '\0')
- return 0;
- return 1;
-}
-
#endif