From 387a9f5702a0bd867df3116fd8f5a24a05f8633e Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Wed, 27 Feb 2019 21:20:49 -0500 Subject: use __lookup() instead of manual casting --- src/unistd/_exit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/unistd') 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); } -- cgit v1.2.1