summaryrefslogtreecommitdiff
path: root/string
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2006-08-22 09:05:41 +0000
committerJakub Jelinek <jakub@redhat.com>2006-08-22 09:05:41 +0000
commit4728cb644861ff8c58586702bf6815c50a1c0dd2 (patch)
tree305ac8dc2d7c6eaf501ebe90d90cc174c8ae7e25 /string
parentab3017a58b517cb20feb6e6688b9cb1948c00156 (diff)
Updated to fedora-glibc-20060822T0706cvs/fedora-glibc-2_4_90-23
Diffstat (limited to 'string')
-rw-r--r--string/strchr.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/string/strchr.c b/string/strchr.c
index c8b7969e85..5afd364533 100644
--- a/string/strchr.c
+++ b/string/strchr.c
@@ -1,4 +1,5 @@
-/* Copyright (C) 1991,93,94,95,96,97,99,2000,03 Free Software Foundation, Inc.
+/* Copyright (C) 1991,1993-1997,1999,2000,2003,2006
+ Free Software Foundation, Inc.
This file is part of the GNU C Library.
Based on strlen implementation by Torbjorn Granlund (tege@sics.se),
with help from Dan Sahlin (dan@sics.se) and
@@ -42,8 +43,8 @@ strchr (s, 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;