diff --git a/src/libsys/console.c b/src/libsys/console.c index 602db54..9121450 100644 --- a/src/libsys/console.c +++ b/src/libsys/console.c @@ -95,7 +95,7 @@ void _putchar(int fd, char c) } -char _getchar(int fd) +char _getchar() { - return readchar(fd); + return readchar(0); } diff --git a/src/libsys/console.h b/src/libsys/console.h index 75f760d..ff59e5d 100644 --- a/src/libsys/console.h +++ b/src/libsys/console.h @@ -51,8 +51,8 @@ con_if_entry_t const* con_getPort(int file); int readchar(int file); void writechar(int file, char c); -char _getchar(int fd); -void _putchar(int fd, char c); +char _getchar(); +void _putchar(int file, char c); #ifdef __cplusplus }