diff options
author | June McEnroe <june@causal.agency> | 2018-09-02 16:44:14 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2018-09-02 16:44:14 -0400 |
commit | bdda95d1b538b63eb1242352b36114356e8539ba (patch) | |
tree | f683e81825e7188047baa1aa30de03abec83f1d9 /bin/modem.c | |
parent | Remove colorcolumn at 100 (diff) | |
download | src-bdda95d1b538b63eb1242352b36114356e8539ba.tar.gz src-bdda95d1b538b63eb1242352b36114356e8539ba.zip |
Use PascalCase for constants
Get outta here, underscores.
Diffstat (limited to '')
-rw-r--r-- | bin/modem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/modem.c b/bin/modem.c index c8074a9a..edd76b45 100644 --- a/bin/modem.c +++ b/bin/modem.c @@ -31,7 +31,7 @@ #include <util.h> #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); |