X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=lib%2Fmemrchr.c;h=2efc7cb97521db78157e364378710bf6579e7de7;hb=92249085071a973e2c0621b0415b93d2e48bb00d;hp=5a023e0638a1cebd90aac82420ce32af836d8ac4;hpb=d738e90e8360e101b94fca8c79147f59565f62d8;p=debian%2Fgzip
diff --git a/lib/memrchr.c b/lib/memrchr.c
index 5a023e0..2efc7cb 100644
--- a/lib/memrchr.c
+++ b/lib/memrchr.c
@@ -1,6 +1,6 @@
/* memrchr -- find the last occurrence of a byte in a memory block
- Copyright (C) 1991, 1993, 1996-1997, 1999-2000, 2003-2013 Free Software
+ Copyright (C) 1991, 1993, 1996-1997, 1999-2000, 2003-2018 Free Software
Foundation, Inc.
Based on strlen implementation by Torbjorn Granlund (tege@sics.se),
@@ -20,7 +20,7 @@
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
- along with this program. If not, see . */
+ along with this program. If not, see . */
#if defined _LIBC
# include
@@ -68,7 +68,7 @@ __memrchr (void const *s, int c_in, size_t n)
if (*--char_ptr == c)
return (void *) char_ptr;
- longword_ptr = (const longword *) char_ptr;
+ longword_ptr = (const void *) char_ptr;
/* All these elucidatory comments refer to 4-byte longwords,
but the theory applies equally well to any size longwords. */