From c6c4a4b1dd77d8365debcc070b0bac097c0399cb Mon Sep 17 00:00:00 2001 From: Martin Lund Date: Sun, 24 Apr 2016 09:20:27 +0200 Subject: [PATCH] Minor cleanup --- src/main.c | 1 + src/tty.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 27a06a3..7b8315a 100644 --- a/src/main.c +++ b/src/main.c @@ -42,6 +42,7 @@ int main(int argc, char *argv[]) status = connect_tty(); else { + /* Enter connect loop */ while (true) { wait_for_tty_device(); diff --git a/src/tty.c b/src/tty.c index a13a8e1..aac148f 100644 --- a/src/tty.c +++ b/src/tty.c @@ -144,7 +144,7 @@ int connect_tty(void) /* Open tty device */ fd = open(option.tty_device, O_RDWR | O_NOCTTY ); - if (fd <0) + if (fd < 0) { printf("\033[300DError: %s\n\033[300D", strerror(errno)); exit(EXIT_FAILURE);