summaryrefslogtreecommitdiffstats
path: root/util.c
diff options
context:
space:
mode:
authorJames <31272717+gpd-pocket-hacker@users.noreply.github.com>2020-10-31 18:25:41 +0000
committerJames <31272717+gpd-pocket-hacker@users.noreply.github.com>2020-10-31 19:32:32 +0000
commitc3606b0b60e37f5af9e7b71a9e19c3f8097b4a61 (patch)
tree9866aac3d1c354fb6f042d640b4fa470ee8809d3 /util.c
parent232cf21c35c79458969fd661d18ca779c5418c2e (diff)
downloadgalaxy_tools-c3606b0b60e37f5af9e7b71a9e19c3f8097b4a61.tar.gz
galaxy_tools-c3606b0b60e37f5af9e7b71a9e19c3f8097b4a61.tar.bz2
galaxy_tools-c3606b0b60e37f5af9e7b71a9e19c3f8097b4a61.zip
split out rx and add syslog support
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);