Fixed sys_exit to use _Noreturn

This commit is contained in:
g1n 2021-12-29 10:54:16 +02:00
parent 872800cb0c
commit be1b36a105
Signed by: g1n
GPG Key ID: 8D352193D65D4E2C
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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);
}