From c3606b0b60e37f5af9e7b71a9e19c3f8097b4a61 Mon Sep 17 00:00:00 2001 From: James <31272717+gpd-pocket-hacker@users.noreply.github.com> Date: Sat, 31 Oct 2020 18:25:41 +0000 Subject: split out rx and add syslog support --- util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'util.c') diff --git a/util.c b/util.c index e06fc62..21c1eb9 100644 --- a/util.c +++ b/util.c @@ -1,6 +1,6 @@ #include #include -#include +//#include #include #include #include @@ -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); -- cgit v1.2.3