mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-21 00:07:36 +08:00
Cygwin: AF_UNIX: sendmsg: avoid double use of variable name
Use 'waitret' instead of 'ret' for the return value of cygwait, since there is already a different 'ret' variable in use. The previous double use of 'ret' was legal because of scoping rules, but possibly confusing.
This commit is contained in:
parent
de54d280eb
commit
b467e93875
@ -2074,8 +2074,8 @@ fhandler_socket_unix::sendmsg (const struct msghdr *msg, int flags)
|
||||
if (evt && status == STATUS_PENDING)
|
||||
{
|
||||
wait:
|
||||
DWORD ret = cygwait (evt, cw_infinite, cw_cancel | cw_sig_eintr);
|
||||
switch (ret)
|
||||
DWORD waitret = cygwait (evt, cw_infinite, cw_cancel | cw_sig_eintr);
|
||||
switch (waitret)
|
||||
{
|
||||
case WAIT_OBJECT_0:
|
||||
status = io.Status;
|
||||
|
Loading…
x
Reference in New Issue
Block a user