summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
authorrtm <rtm>2006-07-20 09:07:53 +0000
committerrtm <rtm>2006-07-20 09:07:53 +0000
commit29270816285978e44b317c6e5c7bfa7a89ec24dd (patch)
treefae6e6346ca73f7d2721c059a9f1fce166c045c7 /string.c
parentbd228a81566befa6154807d327d8c873f6a76c79 (diff)
downloadxv6-labs-29270816285978e44b317c6e5c7bfa7a89ec24dd.tar.gz
xv6-labs-29270816285978e44b317c6e5c7bfa7a89ec24dd.tar.bz2
xv6-labs-29270816285978e44b317c6e5c7bfa7a89ec24dd.zip
uint32_t -> uint &c
Diffstat (limited to 'string.c')
-rw-r--r--string.c6
1 files changed, 3 insertions, 3 deletions
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.