diff options
author | June McEnroe <june@causal.agency> | 2017-07-14 22:32:19 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2017-07-14 22:32:19 -0400 |
commit | bf94742aa9939acc3026e31cf5654ea8ecf8eb26 (patch) | |
tree | 8f9608bf7f4cc4486cae57f1fee6dce44be04ae6 | |
parent | Add just-about-functional dtch/atch (diff) | |
download | src-bf94742aa9939acc3026e31cf5654ea8ecf8eb26.tar.gz src-bf94742aa9939acc3026e31cf5654ea8ecf8eb26.zip |
Use CTRL macro
Diffstat (limited to '')
-rwxr-xr-x | home/.bin/dtch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/home/.bin/dtch.c b/home/.bin/dtch.c index 375b13d2..071116b4 100755 --- a/home/.bin/dtch.c +++ b/home/.bin/dtch.c @@ -227,7 +227,7 @@ static int atch(int argc, char *argv[]) { ssize_t len = read(STDIN_FILENO, buf, sizeof(buf)); if (len < 0) err(EX_IOERR, "read(%d)", STDIN_FILENO); - if (len && buf[0] == ('Q' & ~0x40)) { + if (len && buf[0] == CTRL('Q')) { // TODO: Message? exit(0); } |