Rename variable 'options' to 'ti' and use sizeof(ti).
---
 gatchat/test-server.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/gatchat/test-server.c b/gatchat/test-server.c
index 2911978..49012dc 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)
-- 
1.6.3.3

_______________________________________________
ofono mailing list
[email protected]
http://lists.ofono.org/listinfo/ofono

Reply via email to