1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-03 04:22:47 -05:00

Introduce an enum of the uxsel / select_result flags.

Those magic numbers 1,2,4 were getting annoying. Time to replace them
while I can still remember what they do.
This commit is contained in:
Simon Tatham
2019-02-07 18:13:56 +00:00
parent 9f0e0b02e3
commit 47202c4e16
10 changed files with 40 additions and 39 deletions

View File

@ -974,11 +974,11 @@ int main(int argc, char **argv)
* past the urgent marker.
*/
if (FD_ISSET(fd, &xset))
select_result(fd, 4);
select_result(fd, SELECT_X);
if (FD_ISSET(fd, &rset))
select_result(fd, 1);
select_result(fd, SELECT_R);
if (FD_ISSET(fd, &wset))
select_result(fd, 2);
select_result(fd, SELECT_W);
}
if (FD_ISSET(signalpipe[0], &rset)) {