mirror of
https://github.com/tio/tio.git
synced 2026-05-01 23:07:58 +02:00
Remove debug
This commit is contained in:
parent
14a16908a1
commit
77ff1e5269
1 changed files with 3 additions and 6 deletions
|
|
@ -583,15 +583,12 @@ void tty_wait_for_device(void)
|
||||||
if (FD_ISSET(STDIN_FILENO, &rdfs))
|
if (FD_ISSET(STDIN_FILENO, &rdfs))
|
||||||
{
|
{
|
||||||
/* Input from stdin ready */
|
/* Input from stdin ready */
|
||||||
printf(".\n");
|
|
||||||
fflush(stdout);
|
|
||||||
|
|
||||||
/* Read one character */
|
/* Read one character */
|
||||||
status = read(STDIN_FILENO, &input_char, 1);
|
status = read(STDIN_FILENO, &input_char, 1);
|
||||||
if (status <= 0)
|
if (status <= 0)
|
||||||
{
|
{
|
||||||
error_printf("Could not read from stdin 0");
|
error_printf("Could not read from stdin");
|
||||||
error_printf("Could not read from stdin 0 (%s)", strerror(errno));
|
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -823,7 +820,7 @@ int tty_connect(void)
|
||||||
} else
|
} else
|
||||||
{
|
{
|
||||||
/* Error reading - device is likely unplugged */
|
/* Error reading - device is likely unplugged */
|
||||||
error_printf_silent("Could not read from tty device 1");
|
error_printf_silent("Could not read from tty device");
|
||||||
goto error_read;
|
goto error_read;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -835,7 +832,7 @@ int tty_connect(void)
|
||||||
status = read(STDIN_FILENO, &input_char, 1);
|
status = read(STDIN_FILENO, &input_char, 1);
|
||||||
if (status <= 0)
|
if (status <= 0)
|
||||||
{
|
{
|
||||||
error_printf_silent("Could not read from stdin 2");
|
error_printf_silent("Could not read from stdin");
|
||||||
goto error_read;
|
goto error_read;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue