Minor cleanup

This commit is contained in:
Martin Lund 2016-04-24 09:20:27 +02:00
parent 362976354b
commit c6c4a4b1dd
2 changed files with 2 additions and 1 deletions

View file

@ -42,6 +42,7 @@ int main(int argc, char *argv[])
status = connect_tty();
else
{
/* Enter connect loop */
while (true)
{
wait_for_tty_device();

View file

@ -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);