public inbox for cygwin-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] Cygwin: FIFO: minor cleanup
@ 2019-06-23 17:10 Ken Brown
  0 siblings, 0 replies; only message in thread
From: Ken Brown @ 2019-06-23 17:10 UTC (permalink / raw)
  To: cygwin-cvs

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=d54edfdf81b20832aff8627b31a579fb5ba0106e

commit d54edfdf81b20832aff8627b31a579fb5ba0106e
Author: Ken Brown <kbrown@cornell.edu>
Date:   Sat Jun 22 11:49:44 2019 -0400

    Cygwin: FIFO: minor cleanup
    
    Don't use a label with the same name as a variable.
    
    Also fix indentation in fhandler.h.

Diff:
---
 winsup/cygwin/fhandler.h       | 10 +++++-----
 winsup/cygwin/fhandler_fifo.cc |  4 ++--
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/winsup/cygwin/fhandler.h b/winsup/cygwin/fhandler.h
index 185de98..7e59d84 100644
--- a/winsup/cygwin/fhandler.h
+++ b/winsup/cygwin/fhandler.h
@@ -1238,11 +1238,11 @@ public:
 #define MAX_CLIENTS 64
 
 enum fifo_client_connect_state
-  {
-   fc_unknown,
-   fc_connected,
-   fc_invalid
-  };
+{
+  fc_unknown,
+  fc_connected,
+  fc_invalid
+};
 
 enum
 {
diff --git a/winsup/cygwin/fhandler_fifo.cc b/winsup/cygwin/fhandler_fifo.cc
index e0af54b..edc6cae 100644
--- a/winsup/cygwin/fhandler_fifo.cc
+++ b/winsup/cygwin/fhandler_fifo.cc
@@ -761,7 +761,7 @@ fhandler_fifo::hit_eof ()
   bool eof;
   bool retry = true;
 
-retry:
+repeat:
       fifo_client_lock ();
       eof = (nconnected == 0);
       fifo_client_unlock ();
@@ -770,7 +770,7 @@ retry:
 	  retry = false;
 	  /* Give the listen_client thread time to catch up. */
 	  Sleep (1);
-	  goto retry;
+	  goto repeat;
 	}
   return eof;
 }


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-06-23 17:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-23 17:10 [newlib-cygwin] Cygwin: FIFO: minor cleanup Ken Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).