xtclient.c, spcd_event.c: stop referencing fds_bits directly

This commit is contained in:
Jon Trulson
2014-03-24 19:37:09 -06:00
parent 4312a1190b
commit 3c35e2d14d
2 changed files with 18 additions and 27 deletions

View File

@@ -84,11 +84,11 @@ void SPCD_MainLoopUntil(Boolean *flag)
fd_set input_mask, except_mask;
int n, fd;
int result;
do {
for (n=0; n<fd_vec_size; n++) {
input_mask.fds_bits[n] = Sb_Input_Mask.fds_bits[n];
except_mask.fds_bits[n] = Sb_Except_Mask.fds_bits[n];
}
memcpy(&input_mask, &Sb_Input_Mask, sizeof(fd_set));
memcpy(&except_mask, &Sb_Except_Mask, sizeof(fd_set));
do result=select(SPCD_max_fd + 1, FD_SET_CAST(&input_mask),
FD_SET_CAST(NULL),