Skip to content

Commit 1de3e19

Browse files
Rename resetty to reset_tty
1 parent ad57c0b commit 1de3e19

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

libtrn/final.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ Signal_t stop_catcher(int signo)
278278
std::putchar('\n');
279279
}
280280
termlib_reset();
281-
resetty(); /* this is the point of all this */
281+
reset_tty(); /* this is the point of all this */
282282
#ifdef DEBUG
283283
if (debug)
284284
{

libtrn/include/trn/terminal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ inline void savetty()
279279
tcgetattr(g_tty_ch, &g_oldtty);
280280
tcgetattr(g_tty_ch, &g_tty);
281281
}
282-
inline void resetty()
282+
inline void reset_tty()
283283
{
284284
g_bizarre = false;
285285
tcsetattr(g_tty_ch, TCSAFLUSH, &g_oldtty);

libtrn/rcstuff.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ static bool lock_newsrc(Newsrc *rp)
465465
termdown(2);
466466
if (g_bizarre)
467467
{
468-
resetty();
468+
reset_tty();
469469
}
470470
finalize(0);
471471
}
@@ -532,7 +532,7 @@ static bool lock_newsrc(Newsrc *rp)
532532
termdown(2);
533533
if (g_bizarre)
534534
{
535-
resetty();
535+
reset_tty();
536536
}
537537
finalize(0);
538538
}

0 commit comments

Comments
 (0)