From 7733c95be8a9e93ae4398c13c721b334239780fe Mon Sep 17 00:00:00 2001 From: Paul Selkirk Date: Thu, 16 Jun 2016 16:05:32 -0400 Subject: Initial cleanup --- unixio.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'unixio.c') diff --git a/unixio.c b/unixio.c index 6a7e0f0..5dd7843 100644 --- a/unixio.c +++ b/unixio.c @@ -39,6 +39,8 @@ and strip it from inbound characters. */ #include +#include +#include #include #include #include @@ -143,8 +145,8 @@ int pktmode(short on) { if (ttyfd < 0) /* Device must be open */ return(0); - system(on ? "stty raw -echo" : "stty sane"); /* Crude but effective */ - return(1); + return (system(on ? "stty raw -echo" : "stty sane") /* Crude but effective */ + ? 0 : 1); } -- cgit v1.2.3