client: no while loop in client_manager_io()

The last patch removed the "continue" directive, and now the while
loop is without function.  Remove it.  Also make client_manager_io()
return 0.
This commit is contained in:
Max Kellermann 2008-08-28 20:20:10 +02:00
parent f6a7dd2b45
commit 34735fab66

View File

@ -476,10 +476,7 @@ int client_manager_io(void)
fd_set efds;
struct client *client, *n;
int selret;
int fdmax;
while (1) {
fdmax = 0;
int fdmax = 0;
FD_ZERO( &efds );
client_manager_register_read_fd(&rfds, &fdmax);
@ -493,7 +490,7 @@ int client_manager_io(void)
if (selret < 0) {
if (errno == EINTR)
break;
return 0;
FATAL("select() failed: %s\n", strerror(errno));
}
@ -516,10 +513,7 @@ int client_manager_io(void)
}
}
break;
}
return 1;
return 0;
}
void client_manager_init(void)