standardize on not using unsigned keyword
This commit is contained in:
parent
d80b06a1e0
commit
115e177400
3 changed files with 6 additions and 6 deletions
6
ulib.c
6
ulib.c
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
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;
|
||||||
|
|
||||||
|
|
4
user.h
4
user.h
|
@ -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()
|
||||||
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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue