From e34cf76c6857bfb4d0d42fb6d3006cb45c9d39ea Mon Sep 17 00:00:00 2001 From: andreas_kupries Date: Mon, 22 Jan 2007 23:27:52 +0000 Subject: * compat/memcmp.c (memcmp): Fixed the VOID / CONST typo introduced by the last checkin. --- ChangeLog | 5 +++++ compat/memcmp.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index a1eeba0..c667c10 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-01-22 Andreas Kupries + + * compat/memcmp.c (memcmp): Fixed the VOID / CONST typo introduced + by the last checkin. + 2007-01-22 Donal K. Fellows * compat/memcmp.c (memcmp): Reworked so that arithmetic is never diff --git a/compat/memcmp.c b/compat/memcmp.c index dd4cacc..b1c12a9 100644 --- a/compat/memcmp.c +++ b/compat/memcmp.c @@ -48,8 +48,8 @@ memcmp(s1, s2, n) CONST VOID *s2; /* Second string. */ size_t n; /* Length to compare. */ { - VOID unsigned char *ptr1 = (VOID unsigned char *) s1; - VOID unsigned char *ptr2 = (VOID unsigned char *) s2; + CONST unsigned char *ptr1 = (CONST unsigned char *) s1; + CONST unsigned char *ptr2 = (CONST unsigned char *) s2; for ( ; n-- ; ptr1++, ptr2++) { unsigned char u1 = *s1, u2 = *s2; -- cgit v0.12