summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <programble@gmail.com>2017-07-14 22:32:19 -0400
committerJune McEnroe <programble@gmail.com>2017-07-14 22:32:19 -0400
commitbfea43aed0f76190466421aaa5a14af262fab91f (patch)
tree7ab0900aa2235a25e07fdc3f480005416e806582
parentAdd just-about-functional dtch/atch (diff)
downloadsrc-bfea43aed0f76190466421aaa5a14af262fab91f.tar.gz
src-bfea43aed0f76190466421aaa5a14af262fab91f.zip
Use CTRL macro
Diffstat (limited to '')
-rwxr-xr-xcurtis/.bin/dtch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/curtis/.bin/dtch.c b/curtis/.bin/dtch.c
index 375b13d2..071116b4 100755
--- a/curtis/.bin/dtch.c
+++ b/curtis/.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);
             }