summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-05-15 22:40:15 +0000
committerMike Frysinger <vapier@gentoo.org>2006-05-15 22:40:15 +0000
commit7ebb2e4369d611641b67a2f15265742c73b1d8f3 (patch)
tree811a27c1795c08367cd090a21b6cea5a566dc449 /libc
parentc3a0c54d0b17d877bb08192231021fb4049f4d18 (diff)
fix signed warnings
Diffstat (limited to 'libc')
-rw-r--r--libc/string/generic/strchr.c4
-rw-r--r--libc/string/generic/strchrnul.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/libc/string/generic/strchr.c b/libc/string/generic/strchr.c
index 1663adde6..8d401ec8c 100644
--- a/libc/string/generic/strchr.c
+++ b/libc/string/generic/strchr.c
@@ -41,8 +41,8 @@ char *strchr (const char *s, int c_in)
/* Handle the first few characters by reading one character at a time.
Do this until CHAR_PTR is aligned on a longword boundary. */
- for (char_ptr = s; ((unsigned long int) char_ptr
- & (sizeof (longword) - 1)) != 0;
+ for (char_ptr = (const unsigned char *) s;
+ ((unsigned long int) char_ptr & (sizeof (longword) - 1)) != 0;
++char_ptr)
if (*char_ptr == c)
return (void *) char_ptr;
diff --git a/libc/string/generic/strchrnul.c b/libc/string/generic/strchrnul.c
index 6b2d85e9b..17e32ab44 100644
--- a/libc/string/generic/strchrnul.c
+++ b/libc/string/generic/strchrnul.c
@@ -42,8 +42,8 @@ char *strchrnul (const char *s, int c_in)
/* Handle the first few characters by reading one character at a time.
Do this until CHAR_PTR is aligned on a longword boundary. */
- for (char_ptr = s; ((unsigned long int) char_ptr
- & (sizeof (longword) - 1)) != 0;
+ for (char_ptr = (const unsigned char *) s;
+ ((unsigned long int) char_ptr & (sizeof (longword) - 1)) != 0;
++char_ptr)
if (*char_ptr == c || *char_ptr == '\0')
return (void *) char_ptr;