summaryrefslogtreecommitdiffstats
path: root/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'util.c')
-rw-r--r--util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util.c b/util.c
index e06fc62..21c1eb9 100644
--- a/util.c
+++ b/util.c
@@ -1,6 +1,6 @@
#include <string.h>
#include <unistd.h>
-#include <termio.h>
+//#include <termio.h>
#include <termios.h>
#include <fcntl.h>
#include <sys/types.h>
@@ -233,7 +233,7 @@ int open_tty (const char *path, int baud)
struct termios termios;
speed_t s = baud_to_speed_t (baud);
- if (s == (speed_t) -1) return -1;
+ if (s == (speed_t) - 1) return -1;
fd = open (path, O_RDWR | O_NOCTTY | O_NONBLOCK);