diff options
author | rsc <rsc> | 2007-08-08 09:30:48 +0000 |
---|---|---|
committer | rsc <rsc> | 2007-08-08 09:30:48 +0000 |
commit | 115e177400d50838986840ff382ee644f291216b (patch) | |
tree | 371cbb6d02ee63ddd125127a7c2c50563c8b88b0 /ulib.c | |
parent | d80b06a1e0232f4c5e9b9c8ff635e4022e13667c (diff) | |
download | xv6-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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; |