From cf3f3b186fc5306b090fbb3cd3da9139b22c936b Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Sun, 2 Sep 2018 16:44:14 -0400 Subject: Use PascalCase for constants Get outta here, underscores. --- bin/modem.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/modem.c') diff --git a/bin/modem.c b/bin/modem.c index 394ebb72..f41cab45 100644 --- a/bin/modem.c +++ b/bin/modem.c @@ -31,7 +31,7 @@ #include #endif -static const int BAUD_RATE = 19200; +static const int BaudRate = 19200; static struct termios saveTerm; static void restoreTerm(void) { @@ -70,7 +70,7 @@ int main(int argc, char *argv[]) { { .events = POLLIN, .fd = STDIN_FILENO }, { .events = POLLIN, .fd = pty }, }; - while (usleep(8 * 1000000 / BAUD_RATE), 0 < poll(fds, 2, -1)) { + while (usleep(8 * 1000000 / BaudRate), 0 < poll(fds, 2, -1)) { if (fds[0].revents) { ssize_t size = read(STDIN_FILENO, &c, 1); if (size < 0) err(EX_IOERR, "read(%d)", STDIN_FILENO); -- cgit 1.4.1