diff options
author | Jakob Kaivo <jkk@ung.org> | 2019-02-27 21:20:49 -0500 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2019-02-27 21:20:49 -0500 |
commit | 387a9f5702a0bd867df3116fd8f5a24a05f8633e (patch) | |
tree | 30e1e80c80aa0671638123fc9886639ded717174 | |
parent | a4a76ebe51a9c25c76f88b2ae1560491372e0787 (diff) |
use __lookup() instead of manual casting
-rw-r--r-- | src/stdlib/_Exit.c | 2 | ||||
-rw-r--r-- | src/stdlib/exit.c | 2 | ||||
-rw-r--r-- | src/unistd/_exit.c | 2 |
3 files changed, 3 insertions, 3 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 */ diff --git a/src/unistd/_exit.c b/src/unistd/_exit.c index 618b839c..0a61e87c 100644 --- a/src/unistd/_exit.c +++ b/src/unistd/_exit.c @@ -5,7 +5,7 @@ void _exit(int status) { - long scno = ((syscall_lookup_t)__libc(SYSCALL_LOOKUP))("exit"); + long scno = __lookup("exit"); for (;;) { __syscall(scno, status); } |