From 777ccb8e56b3718c3458111d8d60e7b0518a230d Mon Sep 17 00:00:00 2001 From: Andrew Scheller Date: Mon, 24 May 2021 22:34:23 +0100 Subject: [PATCH] Fix function-name misspelling (#443) If "init tty" is `_inittty` then "reset tty" ought to be `_resettty` --- src/host/hardware_uart/uart.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/host/hardware_uart/uart.c b/src/host/hardware_uart/uart.c index 2e5dae3..db28889 100644 --- a/src/host/hardware_uart/uart.c +++ b/src/host/hardware_uart/uart.c @@ -24,7 +24,7 @@ struct termios _tty; static tcflag_t _res_oflg = 0; static tcflag_t _res_lflg = 0; -void _resetty(void) { +void _resettty(void) { if (!isatty(STDIN_FILENO)) return; @@ -49,7 +49,7 @@ void _inittty(void) { tcsetattr(STDIN_FILENO, TCSANOW, &_tty); fcntl(STDIN_FILENO, F_SETFL, FNONBLOCK); - atexit(_resetty); + atexit(_resettty); } #else