summaryrefslogtreecommitdiff
path: root/src/unistd
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2019-02-27 21:20:49 -0500
committerJakob Kaivo <jkk@ung.org>2019-02-27 21:20:49 -0500
commit387a9f5702a0bd867df3116fd8f5a24a05f8633e (patch)
tree30e1e80c80aa0671638123fc9886639ded717174 /src/unistd
parenta4a76ebe51a9c25c76f88b2ae1560491372e0787 (diff)
use __lookup() instead of manual casting
Diffstat (limited to 'src/unistd')
-rw-r--r--src/unistd/_exit.c2
1 files changed, 1 insertions, 1 deletions
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);
}