standardize various * conventions
This commit is contained in:
parent
03b6376f56
commit
9e9bcaf143
43 changed files with 503 additions and 503 deletions
2
ide.c
2
ide.c
|
@ -80,7 +80,7 @@ ide_probe_disk1(void)
|
||||||
// switch back to Device 0
|
// switch back to Device 0
|
||||||
outb(0x1F6, 0xE0 | (0<<4));
|
outb(0x1F6, 0xE0 | (0<<4));
|
||||||
|
|
||||||
return (x < 1000);
|
return x < 1000;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
2
ioapic.c
2
ioapic.c
|
@ -18,7 +18,7 @@ static uint
|
||||||
ioapic_read(struct ioapic *io, int reg)
|
ioapic_read(struct ioapic *io, int reg)
|
||||||
{
|
{
|
||||||
io->ioregsel = reg;
|
io->ioregsel = reg;
|
||||||
return (io->iowin);
|
return io->iowin;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
12
user.h
12
user.h
|
@ -11,7 +11,7 @@ int exec(char *, char **);
|
||||||
int open(char*, int);
|
int open(char*, int);
|
||||||
int mknod(char*, short, short, short);
|
int mknod(char*, short, short, short);
|
||||||
int unlink(char*);
|
int unlink(char*);
|
||||||
int fstat (int fd, struct stat *stat);
|
int fstat(int fd, struct stat*);
|
||||||
int link(char*, char*);
|
int link(char*, char*);
|
||||||
int mkdir(char*);
|
int mkdir(char*);
|
||||||
int chdir(char*);
|
int chdir(char*);
|
||||||
|
@ -20,14 +20,14 @@ int getpid();
|
||||||
char* sbrk(int);
|
char* sbrk(int);
|
||||||
|
|
||||||
// ulib.c
|
// ulib.c
|
||||||
int stat(char *, struct stat *stat);
|
int stat(char*, struct stat*);
|
||||||
int puts(char*);
|
int puts(char*);
|
||||||
char* strcpy(char*, char*);
|
char* strcpy(char*, char*);
|
||||||
char *strchr(const char *s, char c);
|
char* strchr(const char*, char c);
|
||||||
int strcmp(const char *p, const char *q);
|
int strcmp(const char*, const char*);
|
||||||
void printf(int fd, char *fmt, ...);
|
void printf(int, char*, ...);
|
||||||
char* gets(char*, int max);
|
char* gets(char*, int max);
|
||||||
unsigned int strlen(char*);
|
unsigned int strlen(char*);
|
||||||
void * memset(void *dst, int c, unsigned int n);
|
void* memset(void*, int, unsigned int);
|
||||||
void* malloc(uint);
|
void* malloc(uint);
|
||||||
void free(void*);
|
void free(void*);
|
||||||
|
|
Loading…
Reference in a new issue