Skip to content
Snippets Groups Projects
Commit 115e1774 authored by rsc's avatar rsc
Browse files

standardize on not using unsigned keyword

parent d80b06a1
No related branches found
No related tags found
No related merge requests found
...@@ -25,10 +25,10 @@ strcmp(const char *p, const char *q) ...@@ -25,10 +25,10 @@ strcmp(const char *p, const char *q)
{ {
while(*p && *p == *q) while(*p && *p == *q)
p++, q++; p++, q++;
return (int) ((unsigned char) *p - (unsigned char) *q); return (uchar)*p - (uchar)*q;
} }
unsigned int uint
strlen(char *s) strlen(char *s)
{ {
int n = 0; int n = 0;
...@@ -38,7 +38,7 @@ strlen(char *s) ...@@ -38,7 +38,7 @@ strlen(char *s)
} }
void* void*
memset(void *dst, int c, unsigned int n) memset(void *dst, int c, uint n)
{ {
char *d = (char*) dst; char *d = (char*) dst;
......
...@@ -27,8 +27,8 @@ char* strchr(const char*, char c); ...@@ -27,8 +27,8 @@ char* strchr(const char*, char c);
int strcmp(const char*, const char*); int strcmp(const char*, const char*);
void printf(int, char*, ...); void printf(int, char*, ...);
char* gets(char*, int max); char* gets(char*, int max);
unsigned int strlen(char*); uint strlen(char*);
void* memset(void*, int, unsigned int); void* memset(void*, int, uint);
void* malloc(uint); void* malloc(uint);
void free(void*); void free(void*);
int atoi(const char*); int atoi(const char*);
...@@ -654,7 +654,7 @@ concreate() ...@@ -654,7 +654,7 @@ concreate()
int i, pid, n, fd; int i, pid, n, fd;
char fa[40]; char fa[40];
struct { struct {
unsigned short inum; ushort inum;
char name[14]; char name[14];
} de; } de;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment