From 29270816285978e44b317c6e5c7bfa7a89ec24dd Mon Sep 17 00:00:00 2001 From: rtm Date: Thu, 20 Jul 2006 09:07:53 +0000 Subject: uint32_t -> uint &c --- string.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'string.c') diff --git a/string.c b/string.c index dbce231..98253ed 100644 --- a/string.c +++ b/string.c @@ -15,8 +15,8 @@ memset(void *dst, int c, uint n) int memcmp(const void *v1, const void *v2, uint n) { - const uint8_t *s1 = (const uint8_t *) v1; - const uint8_t *s2 = (const uint8_t *) v2; + const uchar *s1 = (const uchar *) v1; + const uchar *s2 = (const uchar *) v2; while (n-- > 0) { if (*s1 != *s2) @@ -55,7 +55,7 @@ strncmp(const char *p, const char *q, uint n) if (n == 0) return 0; else - return (int) ((uint8_t) *p - (uint8_t) *q); + return (int) ((uchar) *p - (uchar) *q); } // Memcpy is deprecated and should NOT be called. -- cgit v1.2.3