From a97a1ed57051fc0c4e2f2f803a4d6a734689cbdc Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Wed, 12 Aug 2020 10:03:53 -0400 Subject: remove __syscall_lookup() --- src/stdio/fputc.c | 2 +- src/stdio/rename.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/stdio') diff --git a/src/stdio/fputc.c b/src/stdio/fputc.c index 063d13a7..20cf5c6b 100644 --- a/src/stdio/fputc.c +++ b/src/stdio/fputc.c @@ -6,7 +6,7 @@ #include "unistd.h" #else #include "../_syscall.h" -#define write(_fd, _buf, _size) __syscall(__lookup("write"), _fd, _buf, _size) +#define write(_fd, _buf, _size) __syscall(__syscall_lookup(write), _fd, _buf, _size) #endif /** write a character to a file stream **/ diff --git a/src/stdio/rename.c b/src/stdio/rename.c index 43500cf3..d213707b 100644 --- a/src/stdio/rename.c +++ b/src/stdio/rename.c @@ -5,7 +5,7 @@ /** rename a file **/ int rename(const char *old, const char *new) { - SYSCALL_NUMBER(sc, "rename", -1); + SYSCALL_NUMBER(sc, rename, -1); int err = 0; err = __syscall(sc, old, new); -- cgit v1.2.1