summaryrefslogtreecommitdiffstats
path: root/src/core/string.c
diff options
context:
space:
mode:
authorMichael Brown2007-07-14 16:42:26 +0200
committerMichael Brown2007-07-14 16:42:26 +0200
commite330db3c749c3ee638e8d652c5c3ae08c13af8e5 (patch)
treea69cefca27d7abe7863b87cb765ab55e26bd0fc5 /src/core/string.c
parentBe more aggressive in attempts to enable A20, now that we have the (diff)
downloadipxe-e330db3c749c3ee638e8d652c5c3ae08c13af8e5.tar.gz
ipxe-e330db3c749c3ee638e8d652c5c3ae08c13af8e5.tar.xz
ipxe-e330db3c749c3ee638e8d652c5c3ae08c13af8e5.zip
Dead code removal.
Kill off use of etherboot.h outside drivers/net.
Diffstat (limited to 'src/core/string.c')
-rw-r--r--src/core/string.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/string.c b/src/core/string.c
index 87c50570..040a7785 100644
--- a/src/core/string.c
+++ b/src/core/string.c
@@ -189,6 +189,14 @@ int strncmp(const char * cs,const char * ct,size_t count)
}
#endif
+#ifndef __HAVE_ARCH_STRCASECMP
+int strcasecmp(const char *a, const char *b)
+{
+ while (*a && *b && (*a & ~0x20) == (*b & ~0x20)) {a++; b++; }
+ return((*a & ~0x20) - (*b & ~0x20));
+}
+#endif
+
#ifndef __HAVE_ARCH_STRCHR
/**
* strchr - Find the first occurrence of a character in a string