aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/client.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/client.c b/src/client.c
index 8c44f4308..5637c5d82 100644
--- a/src/client.c
+++ b/src/client.c
@@ -506,7 +506,7 @@ int client_manager_io(void)
fd_set wfds;
fd_set efds;
struct client *client, *n;
- int selret;
+ int ret;
int fdmax = 0;
FD_ZERO( &efds );
@@ -516,17 +516,17 @@ int client_manager_io(void)
registered_IO_add_fds(&fdmax, &rfds, &wfds, &efds);
main_notify_lock();
- selret = select(fdmax + 1, &rfds, &wfds, &efds, NULL);
+ ret = select(fdmax + 1, &rfds, &wfds, &efds, NULL);
main_notify_unlock();
- if (selret < 0) {
+ if (ret < 0) {
if (errno == EINTR)
return 0;
FATAL("select() failed: %s\n", strerror(errno));
}
- registered_IO_consume_fds(&selret, &rfds, &wfds, &efds);
+ registered_IO_consume_fds(&ret, &rfds, &wfds, &efds);
getConnections(&rfds);