From 05b0eb217dbec0d94b3faf064dfef2253fff3393 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Mon, 12 Nov 2018 22:37:15 -0500 Subject: Use typedefs uint and byte --- bin/modem.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'bin/modem.c') diff --git a/bin/modem.c b/bin/modem.c index edd76b45..5ee35822 100644 --- a/bin/modem.c +++ b/bin/modem.c @@ -31,7 +31,10 @@ #include #endif -static const int BaudRate = 19200; +typedef unsigned uint; +typedef unsigned char byte; + +static const uint BaudRate = 19200; static struct termios saveTerm; static void restoreTerm(void) { @@ -65,7 +68,7 @@ int main(int argc, char *argv[]) { err(EX_NOINPUT, "%s", argv[1]); } - char c; + byte c; struct pollfd fds[2] = { { .events = POLLIN, .fd = STDIN_FILENO }, { .events = POLLIN, .fd = pty }, -- cgit 1.4.1