diff options
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |