diff options
author | dzwdz | 2021-07-24 21:32:03 +0200 |
---|---|---|
committer | dzwdz | 2021-07-24 21:32:03 +0200 |
commit | ef7ec09f68cf10e1f75630409c79ce573d979f1e (patch) | |
tree | d395fb4c0842a46b513da2f30f669f0bd4d99116 /src/init/main.c | |
parent | 986ff1e44ef800f56a5f20afb18c1ffdaf140a23 (diff) |
fix some warnings
Diffstat (limited to 'src/init/main.c')
-rw-r--r-- | src/init/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/init/main.c b/src/init/main.c index 84475da..119984e 100644 --- a/src/init/main.c +++ b/src/init/main.c @@ -4,13 +4,13 @@ int _syscall(int, int, int, int); -void exit(const char *msg, size_t len) { - _syscall(SC_EXIT, (void*)msg, len, 0); +_Noreturn void exit(const char *msg, size_t len) { + _syscall(SC_EXIT, (int)msg, len, 0); __builtin_unreachable(); } int debuglog(const char *msg, size_t len) { - return _syscall(SC_DEBUGLOG, (void*)msg, len, 0); + return _syscall(SC_DEBUGLOG, (int)msg, len, 0); } |