Rename tv_idletimeout (no functional change)

This commit is contained in:
Kamal Mostafa 2016-04-17 08:43:32 -07:00
parent ad83ef5df3
commit 84b2406b97
1 changed files with 2 additions and 2 deletions

View File

@ -162,8 +162,8 @@ static void fsk_transmit_stdin(
{
FD_ZERO(&fdset);
FD_SET(fd, &fdset);
struct timeval tv_zero = { 0, 0 };
if( block_input || select(fd+1, &fdset, NULL, NULL, &tv_zero) )
struct timeval tv_idletimeout = { 0, 0 };
if( block_input || select(fd+1, &fdset, NULL, NULL, &tv_idletimeout) )
{
n_read = read(fd, &buf, sizeof(buf));
if( n_read <= 0 ) //Includes EOF (0) and errors (-1)