mirror of
git://sourceware.org/git/glibc.git
synced 2025-04-06 14:10:30 +08:00
Rename cu_wait from timeout to not shadow the variable in the outer
scope.
This commit is contained in:
parent
dec3f3e9f4
commit
b9ccfd5db2
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user