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)
{
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;
......
......@@ -27,8 +27,8 @@ char* strchr(const char*, char c);
int strcmp(const char*, const char*);
void printf(int, char*, ...);
char* gets(char*, int max);
unsigned int strlen(char*);
void* memset(void*, int, unsigned int);
uint strlen(char*);
void* memset(void*, int, uint);
void* malloc(uint);
void free(void*);
int atoi(const char*);
......@@ -654,7 +654,7 @@ concreate()
int i, pid, n, fd;
char fa[40];
struct {
unsigned short inum;
ushort inum;
char name[14];
} 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