aboutsummaryrefslogtreecommitdiffstats
path: root/src/xgselect.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/xgselect.c')
-rw-r--r--src/xgselect.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xgselect.c b/src/xgselect.c
index bb2226e07cf..0b62d3e8255 100644
--- a/src/xgselect.c
+++ b/src/xgselect.c
@@ -50,7 +50,7 @@ xg_select (int fds_lim, fd_set *rfds, fd_set *wfds, fd_set *efds,
50 struct timespec const *tmop = timeout; 50 struct timespec const *tmop = timeout;
51 51
52 GMainContext *context; 52 GMainContext *context;
53 int have_wfds = wfds != NULL; 53 bool have_wfds = wfds != NULL;
54 GPollFD gfds_buf[128]; 54 GPollFD gfds_buf[128];
55 GPollFD *gfds = gfds_buf; 55 GPollFD *gfds = gfds_buf;
56 int gfds_size = ARRAYELTS (gfds_buf); 56 int gfds_size = ARRAYELTS (gfds_buf);
@@ -96,7 +96,7 @@ xg_select (int fds_lim, fd_set *rfds, fd_set *wfds, fd_set *efds,
96 { 96 {
97 FD_SET (gfds[i].fd, &all_wfds); 97 FD_SET (gfds[i].fd, &all_wfds);
98 if (gfds[i].fd > max_fds) max_fds = gfds[i].fd; 98 if (gfds[i].fd > max_fds) max_fds = gfds[i].fd;
99 have_wfds = 1; 99 have_wfds = true;
100 } 100 }
101 } 101 }
102 102