Rename cu_wait from timeout to not shadow the variable in the outer

scope.
This commit is contained in:
Ulrich Drepper 1997-12-09 23:46:25 +00:00
parent dec3f3e9f4
commit b9ccfd5db2

View File

@ -287,10 +287,10 @@ send_again:
mask = 1 << cu->cu_sock;
#endif /* def FD_SETSIZE */
for (;;) {
struct timeval timeout = cu->cu_wait;
struct timeval cu_wait = cu->cu_wait;
readfds = mask;
switch (select(_rpc_dtablesize(), &readfds, (int *)NULL,
(int *)NULL, &timeout)) {
(int *)NULL, &cu_wait)) {
case 0:
time_waited.tv_sec += cu->cu_wait.tv_sec;