From ed374a822d29d53b82f7aa5338ddc88ac844fe19 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Thu, 28 Feb 2019 20:28:55 -0500 Subject: include in --- src/nonstd/SYSCALL.c | 2 +- src/nonstd/syscall_lookup_t.c | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) delete mode 100644 src/nonstd/syscall_lookup_t.c (limited to 'src') diff --git a/src/nonstd/SYSCALL.c b/src/nonstd/SYSCALL.c index b5cab01c..4f4ce61a 100644 --- a/src/nonstd/SYSCALL.c +++ b/src/nonstd/SYSCALL.c @@ -2,7 +2,7 @@ #define SYSCALL(_name, _type, _err, _a1, _a2, _a3, _a4, _a5, _a6) \ static int _scno = -2; \ - if (_scno == -2) { _scno = ((syscall_lookup_t)__libc(SYSCALL_LOOKUP))(_name); } \ + if (_scno == -2) { _scno = ((long (*)(const char *))__libc(SYSCALL_LOOKUP))(_name); } \ long _ret = __syscall(_scno, _a1, _a2, _a3, _a4, _a5, _a6); \ if (_ret < 0) { \ errno = -_ret; \ diff --git a/src/nonstd/syscall_lookup_t.c b/src/nonstd/syscall_lookup_t.c deleted file mode 100644 index d30bdbc2..00000000 --- a/src/nonstd/syscall_lookup_t.c +++ /dev/null @@ -1,3 +0,0 @@ -#include - -typedef long (*syscall_lookup_t)(const char *); -- cgit v1.2.1