mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-22 00:38:06 +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)
|
if (evt && status == STATUS_PENDING)
|
||||||
{
|
{
|
||||||
wait:
|
wait:
|
||||||
DWORD ret = cygwait (evt, cw_infinite, cw_cancel | cw_sig_eintr);
|
DWORD waitret = cygwait (evt, cw_infinite, cw_cancel | cw_sig_eintr);
|
||||||
switch (ret)
|
switch (waitret)
|
||||||
{
|
{
|
||||||
case WAIT_OBJECT_0:
|
case WAIT_OBJECT_0:
|
||||||
status = io.Status;
|
status = io.Status;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user