Fixed sys_exit to use _Noreturn
This commit is contained in:
parent
872800cb0c
commit
be1b36a105
|
@ -19,7 +19,7 @@ extern FILE *stderr;
|
|||
#define stdout stdout
|
||||
#define stderr stderr
|
||||
|
||||
void sys_exit(int status); // FIXME: noreturn
|
||||
_Noreturn void sys_exit(int status);
|
||||
int sys_open(const char *pathname, int flags);
|
||||
int sys_close(int fd);
|
||||
ssize_t sys_write(int fd, const void *buf, size_t count);
|
||||
|
|
|
@ -5,7 +5,7 @@ FILE *stdin = {0}; // FIXME
|
|||
FILE *stdout = {1};
|
||||
FILE *stderr = {2};
|
||||
|
||||
void sys_exit(int status) {
|
||||
_Noreturn void sys_exit(int status) {
|
||||
syscall(__NR_exit, status);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue