Cygwin: FIFO: minor cleanup
Don't use a label with the same name as a variable. Also fix indentation in fhandler.h.
This commit is contained in:
parent
2357091617
commit
d54edfdf81
|
@ -1238,11 +1238,11 @@ public:
|
||||||
#define MAX_CLIENTS 64
|
#define MAX_CLIENTS 64
|
||||||
|
|
||||||
enum fifo_client_connect_state
|
enum fifo_client_connect_state
|
||||||
{
|
{
|
||||||
fc_unknown,
|
fc_unknown,
|
||||||
fc_connected,
|
fc_connected,
|
||||||
fc_invalid
|
fc_invalid
|
||||||
};
|
};
|
||||||
|
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
|
|
|
@ -761,7 +761,7 @@ fhandler_fifo::hit_eof ()
|
||||||
bool eof;
|
bool eof;
|
||||||
bool retry = true;
|
bool retry = true;
|
||||||
|
|
||||||
retry:
|
repeat:
|
||||||
fifo_client_lock ();
|
fifo_client_lock ();
|
||||||
eof = (nconnected == 0);
|
eof = (nconnected == 0);
|
||||||
fifo_client_unlock ();
|
fifo_client_unlock ();
|
||||||
|
@ -770,7 +770,7 @@ retry:
|
||||||
retry = false;
|
retry = false;
|
||||||
/* Give the listen_client thread time to catch up. */
|
/* Give the listen_client thread time to catch up. */
|
||||||
Sleep (1);
|
Sleep (1);
|
||||||
goto retry;
|
goto repeat;
|
||||||
}
|
}
|
||||||
return eof;
|
return eof;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue