aboutsummaryrefslogtreecommitdiffstats
path: root/src/client.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-09-10 11:41:34 +0200
committerEric Wong <normalperson@yhbt.net>2008-09-10 23:34:54 -0700
commit6452dab44c6a170d8081b1a15223fb28ea9ab230 (patch)
treec91682bb8dffe5bdcc4c4aba747e95524be06517 /src/client.c
parent44fc077f3bc6855bc83acaae9d43cf1e7ccc749a (diff)
downloadmpd-6452dab44c6a170d8081b1a15223fb28ea9ab230.tar.gz
mpd-6452dab44c6a170d8081b1a15223fb28ea9ab230.tar.xz
mpd-6452dab44c6a170d8081b1a15223fb28ea9ab230.zip
client: renamed local variable "selret" to "ret"
It's easier to reuse the variable if it has a more generic name.
Diffstat (limited to '')
-rw-r--r--src/client.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/client.c b/src/client.c
index 615e67ace..9b70116bd 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 );
@@ -515,15 +515,16 @@ int client_manager_io(void)
registered_IO_add_fds(&fdmax, &rfds, &wfds, &efds);
- selret = select(fdmax + 1, &rfds, &wfds, &efds, NULL);
- if (selret < 0) {
+ ret = select(fdmax + 1, &rfds, &wfds, &efds, NULL);
+
+ 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);