summaryrefslogtreecommitdiffstats
path: root/unit/test-caif.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2010-01-28 21:34:16 +0100
committerMarcel Holtmann <marcel@holtmann.org>2010-01-28 21:34:16 +0100
commit2e4bcbf0ac777c0c199440ef62e58054b2fbfc3e (patch)
tree8b3196fbc5c8f2074c88e2e907f494854f0e939a /unit/test-caif.c
parentbc7d0fb27fc9b2ddcfeff75ac1e5cd41d7ea57a7 (diff)
downloadofono-2e4bcbf0ac777c0c199440ef62e58054b2fbfc3e.tar.bz2
The old CAIF character device are not TTYs
Diffstat (limited to 'unit/test-caif.c')
-rw-r--r--unit/test-caif.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/unit/test-caif.c b/unit/test-caif.c
index 8159c4e6..5bc3bf79 100644
--- a/unit/test-caif.c
+++ b/unit/test-caif.c
@@ -28,7 +28,6 @@
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
-#include <termios.h>
#include <glib.h>
#include <glib/gprintf.h>
@@ -42,22 +41,14 @@ static GMainLoop *mainloop;
static int do_open(void)
{
- struct termios ti;
int fd;
- fd = open("/dev/chnlat11", O_RDWR | O_NOCTTY | O_NONBLOCK);
+ fd = open("/dev/chnlat11", O_RDWR);
if (fd < 0) {
g_printerr("Open of chnlat11 failed (%d)\n", errno);
return -EIO;
}
- /* Switch TTY to raw mode */
- memset(&ti, 0, sizeof(ti));
- cfmakeraw(&ti);
-
- tcflush(fd, TCIOFLUSH);
- tcsetattr(fd, TCSANOW, &ti);
-
return fd;
}