4
0
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:
Ken Brown 2020-10-06 09:57:43 -04:00
parent de54d280eb
commit b467e93875

View File

@ -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;