diff options
Diffstat (limited to 'src/stdlib')
-rw-r--r-- | src/stdlib/_Exit.c | 2 | ||||
-rw-r--r-- | src/stdlib/exit.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/stdlib/_Exit.c b/src/stdlib/_Exit.c index e1f9d192..a199b457 100644 --- a/src/stdlib/_Exit.c +++ b/src/stdlib/_Exit.c @@ -4,7 +4,7 @@ /** cause normal program termination without handlers **/ _Noreturn void _Exit(int status) { - long scno = ((syscall_lookup_t)__libc(SYSCALL_LOOKUP))("exit"); + long scno = __lookup("exit"); for (;;) { __syscall(scno, status); } diff --git a/src/stdlib/exit.c b/src/stdlib/exit.c index f7ce5325..f69f01c7 100644 --- a/src/stdlib/exit.c +++ b/src/stdlib/exit.c @@ -7,7 +7,7 @@ /** cause normal program termination **/ _Noreturn void exit(int status) { - long scno = ((syscall_lookup_t)__libc(SYSCALL_LOOKUP))("exit"); + long scno = __lookup("exit"); struct atexit *ae = __libc(ATEXIT); /* execute all atexit() registered functions in reverse order */ |