Fix function-name misspelling (#443)

If "init tty" is `_inittty` then "reset tty" ought to be `_resettty`
This commit is contained in:
Andrew Scheller 2021-05-24 22:34:23 +01:00 committed by GitHub
parent 17ee1a877d
commit 777ccb8e56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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