rs

FTDI serial communication program
git clone git://git.2f30.org/rs
Log | Files | Refs | README | LICENSE

commit 7f4368fca698cf76e75df23981fcba02df153fa9
parent 24e8a01ecc49118d40891f1beaf744ae8b4f9f47
Author: sin <sin@2f30.org>
Date:   Sat, 16 Nov 2013 12:27:31 +0000

Rename `saved_tio' to `savedtio'

Diffstat:
Mrs.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/rs.c b/rs.c @@ -10,7 +10,7 @@ static struct ftdi_context ftdictx; static struct ftdi_device_list *devlist; -static struct termios tio, saved_tio; +static struct termios tio, savedtio; static int bflag = 0; static int lflag = 0; @@ -30,7 +30,7 @@ static int ttyinit(void) { tcgetattr(STDIN_FILENO, &tio); - saved_tio = tio; + savedtio = tio; cfmakeraw(&tio); tio.c_cc[VMIN] = 0; tio.c_cc[VTIME] = 0; @@ -44,7 +44,7 @@ ttyinit(void) static void ttyrestore(void) { - tcsetattr(STDIN_FILENO, TCSAFLUSH, &saved_tio); + tcsetattr(STDIN_FILENO, TCSAFLUSH, &savedtio); putchar('\n'); }