summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.deps/all.ref1
-rw-r--r--.deps/nonstd/locale.h.deps1
-rw-r--r--src/nonstd/SYSCALL.c2
-rw-r--r--src/nonstd/syscall_lookup_t.c3
4 files changed, 3 insertions, 4 deletions
diff --git a/.deps/all.ref b/.deps/all.ref
index bd32369a..9471ed8b 100644
--- a/.deps/all.ref
+++ b/.deps/all.ref
@@ -5,6 +5,7 @@
./src/nonstd/locale-internal.ref
./src/nonstd/pid_t.ref
./src/nonstd/ENOSYS.ref
+./src/nonstd/locale-locale.ref
./src/nonstd/stdio.ref
./src/nonstd/errno.ref
./src/nonstd/ctype-internal.ref
diff --git a/.deps/nonstd/locale.h.deps b/.deps/nonstd/locale.h.deps
index 8f50496b..80865e58 100644
--- a/.deps/nonstd/locale.h.deps
+++ b/.deps/nonstd/locale.h.deps
@@ -2,3 +2,4 @@
./src/nonstd/__load_locale.c
./src/nonstd/locale-limits.ref
./src/nonstd/locale-internal.ref
+./src/nonstd/locale-locale.ref
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 <nonstd/syscall.h>
-
-typedef long (*syscall_lookup_t)(const char *);