diff options
author | James <31272717+gpd-pocket-hacker@users.noreply.github.com> | 2020-10-31 18:25:41 +0000 |
---|---|---|
committer | James <31272717+gpd-pocket-hacker@users.noreply.github.com> | 2020-10-31 19:32:32 +0000 |
commit | c3606b0b60e37f5af9e7b71a9e19c3f8097b4a61 (patch) | |
tree | 9866aac3d1c354fb6f042d640b4fa470ee8809d3 /util.c | |
parent | 232cf21c35c79458969fd661d18ca779c5418c2e (diff) | |
download | galaxy_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.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); |