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
commit05b0eb217dbec0d94b3faf064dfef2253fff3393 (patch)
tree83091307cc65f0d3dc5fa9094482ce39c7589128 /bin/modem.c
parentAdd \s sort binding and simplify \h and \a (diff)
downloadsrc-05b0eb217dbec0d94b3faf064dfef2253fff3393.tar.gz
src-05b0eb217dbec0d94b3faf064dfef2253fff3393.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 edd76b45..5ee35822 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 },