projects
/
external
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7cc645e
)
Cast RHS to const unsigned char * to avoid error from Irix-4.0.5's C compiler.
author
Jim Meyering
<meyering@lucent.com>
Sat, 27 May 1995 20:22:12 +0000
(20:22 +0000)
committer
Jim Meyering
<meyering@lucent.com>
Sat, 27 May 1995 20:22:12 +0000
(20:22 +0000)
sysdeps/generic/memchr.c
patch
|
blob
|
history
diff --git
a/sysdeps/generic/memchr.c
b/sysdeps/generic/memchr.c
index
0eb65d1
..
01b4edc
100644
(file)
--- a/
sysdeps/generic/memchr.c
+++ b/
sysdeps/generic/memchr.c
@@
-64,8
+64,9
@@
memchr (s, c, n)
/* 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; n > 0 && ((unsigned long int) char_ptr
- & (sizeof (longword) - 1)) != 0;
+ for (char_ptr = (const unsigned char *) s;
+ n > 0 && ((unsigned long int) char_ptr
+ & (sizeof (longword) - 1)) != 0;
--n, ++char_ptr)
if (*char_ptr == c)
return (__ptr_t) char_ptr;