From ece0df905260ddb776c2fb0bfe89487bcbc9ff5d Mon Sep 17 00:00:00 2001 From: Andrew Scheller Date: Mon, 24 May 2021 12:40:53 +0100 Subject: [PATCH] Fix function-name misspelling 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 2e5dae3f4..db2888915 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