summary refs log tree commit diff
path: root/bin/modem.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-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 },