mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-03 20:42:48 -05:00
Use the SELECT_* enum for a few more uxsel flags.
This cleans up some spots that were missed in 47202c4e16
.
This commit is contained in:

committed by
Simon Tatham

parent
867e691874
commit
6ce6fe5712
@ -417,9 +417,9 @@ static void serial_uxsel_setup(Serial *serial)
|
||||
int rwx = 0;
|
||||
|
||||
if (serial->inbufsize <= SERIAL_MAX_BACKLOG)
|
||||
rwx |= 1;
|
||||
rwx |= SELECT_R;
|
||||
if (bufchain_size(&serial->output_data))
|
||||
rwx |= 2; /* might also want to write to it */
|
||||
rwx |= SELECT_W; /* might also want to write to it */
|
||||
uxsel_set(serial->fd, rwx, serial_select_result);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user