summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon TURNEY <jon.turney@dronecode.org.uk>2013-09-13 13:07:55 +0100
committerJon TURNEY <jon.turney@dronecode.org.uk>2015-07-25 16:24:58 +0100
commit2029a716408755fc4d4e3e6cef2503850e93c496 (patch)
treea3e42ed1916b0482b31c2011cf097072ea5f374b
parentbc6a87cd082e902c955ae73dcd7c1710ce801756 (diff)
Use 'unsigned char' rather than non-standard type 'u_char'
-rw-r--r--os/strcasecmp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/os/strcasecmp.c b/os/strcasecmp.c
index 2692f7f1e..2991304d9 100644
--- a/os/strcasecmp.c
+++ b/os/strcasecmp.c
@@ -38,7 +38,7 @@
int
xstrcasecmp(const char *str1, const char *str2)
{
- const u_char *us1 = (const u_char *) str1, *us2 = (const u_char *) str2;
+ const unsigned char *us1 = (const unsigned char *) str1, *us2 = (const unsigned char *) str2;
while (tolower(*us1) == tolower(*us2)) {
if (*us1++ == '\0')
@@ -55,7 +55,7 @@ int
xstrncasecmp(const char *s1, const char *s2, size_t n)
{
if (n != 0) {
- const u_char *us1 = (const u_char *) s1, *us2 = (const u_char *) s2;
+ const unsigned char *us1 = (const unsigned char *) s1, *us2 = (const unsigned char *) s2;
do {
if (tolower(*us1) != tolower(*us2++))