summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gatchat/test-server.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gatchat/test-server.c b/gatchat/test-server.c
index 2911978f..49012dc3 100644
--- a/gatchat/test-server.c
+++ b/gatchat/test-server.c
@@ -846,13 +846,13 @@ static void server_destroy(gpointer user)
static void set_raw_mode(int fd)
{
- struct termios options;
+ struct termios ti;
- memset(&options, 0, sizeof(struct termios));
- tcgetattr(fd, &options);
+ memset(&ti, 0, sizeof(ti));
+ tcgetattr(fd, &ti);
tcflush(fd, TCIOFLUSH);
- cfmakeraw(&options);
- tcsetattr(fd, TCSANOW, &options);
+ cfmakeraw(&ti);
+ tcsetattr(fd, TCSANOW, &ti);
}
static gboolean create_tty(const char *modem_path)