mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Minor cleanup
This commit is contained in:
parent
362976354b
commit
c6c4a4b1dd
2 changed files with 2 additions and 1 deletions
|
|
@ -42,6 +42,7 @@ int main(int argc, char *argv[])
|
|||
status = connect_tty();
|
||||
else
|
||||
{
|
||||
/* Enter connect loop */
|
||||
while (true)
|
||||
{
|
||||
wait_for_tty_device();
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue