summary refs log tree commit diff
path: root/bin/modem.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-11-12 22:37:15 -0500
committerJune McEnroe <june@causal.agency>2018-11-12 22:37:15 -0500
commit302196272521b66b71f2ab75cc3c9ea335ca5fff (patch)
tree54970ff525ebfe3053351ab97e41d580afca26e7 /bin/modem.c
parentAdd \s sort binding and simplify \h and \a (diff)
downloadsrc-302196272521b66b71f2ab75cc3c9ea335ca5fff.tar.gz
src-302196272521b66b71f2ab75cc3c9ea335ca5fff.zip
Use typedefs uint and byte
Diffstat (limited to 'bin/modem.c')
-rw-r--r--bin/modem.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/modem.c b/bin/modem.c
index f41cab45..f8733a2b 100644
--- a/bin/modem.c
+++ b/bin/modem.c
@@ -31,7 +31,10 @@
 #include <util.h>
 #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 },