summaryrefslogtreecommitdiff
path: root/ulib.c
diff options
context:
space:
mode:
authorrsc <rsc>2007-08-08 09:30:48 +0000
committerrsc <rsc>2007-08-08 09:30:48 +0000
commit115e177400d50838986840ff382ee644f291216b (patch)
tree371cbb6d02ee63ddd125127a7c2c50563c8b88b0 /ulib.c
parentd80b06a1e0232f4c5e9b9c8ff635e4022e13667c (diff)
downloadxv6-labs-115e177400d50838986840ff382ee644f291216b.tar.gz
xv6-labs-115e177400d50838986840ff382ee644f291216b.tar.bz2
xv6-labs-115e177400d50838986840ff382ee644f291216b.zip
standardize on not using unsigned keyword
Diffstat (limited to 'ulib.c')
-rw-r--r--ulib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ulib.c b/ulib.c
index ce4e13d..994ceb9 100644
--- a/ulib.c
+++ b/ulib.c
@@ -25,10 +25,10 @@ strcmp(const char *p, const char *q)
{
while(*p && *p == *q)
p++, q++;
- return (int) ((unsigned char) *p - (unsigned char) *q);
+ return (uchar)*p - (uchar)*q;
}
-unsigned int
+uint
strlen(char *s)
{
int n = 0;
@@ -38,7 +38,7 @@ strlen(char *s)
}
void*
-memset(void *dst, int c, unsigned int n)
+memset(void *dst, int c, uint n)
{
char *d = (char*) dst;