public inbox for cygwin-cvs@sourceware.org
help / color / mirror / Atom feed
From: Corinna Vinschen <corinna@sourceware.org>
To: cygwin-cvs@sourceware.org
Subject: [newlib-cygwin] fhandler_serial: fix comments
Date: Thu, 26 Mar 2020 11:27:01 +0000 (GMT)	[thread overview]
Message-ID: <20200326112701.E95753876057@sourceware.org> (raw)

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

commit 8ffe12b394e4ed593b38c991da6d094100c3b78d
Author: Corinna Vinschen <corinna@vinschen.de>
Date:   Wed Mar 25 12:25:06 2020 +0100

    fhandler_serial: fix comments
    
    Signed-off-by: Corinna Vinschen <corinna@vinschen.de>

Diff:
---
 winsup/cygwin/fhandler_serial.cc | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/winsup/cygwin/fhandler_serial.cc b/winsup/cygwin/fhandler_serial.cc
index 1750a9f97..3fd8a974c 100644
--- a/winsup/cygwin/fhandler_serial.cc
+++ b/winsup/cygwin/fhandler_serial.cc
@@ -45,7 +45,7 @@ fhandler_serial::raw_read (void *ptr, size_t& ulen)
   if (ulen == 0)
     return;
 
-  /* If VMIN > 0 in blocking mode, we have to wait for at least VMIN chars.
+  /* If MIN > 0 in blocking mode, we have to wait for at least MIN chars.
      Otherwise we're in polling mode and there's no minimum chars. */
   ssize_t minchars = is_nonblocking () ? 0 : vmin_;
 
@@ -85,8 +85,8 @@ fhandler_serial::raw_read (void *ptr, size_t& ulen)
 	     and don't wait. */
 	  if (st.cbInQue && st.cbInQue >= minchars)
 	    bytes_to_read = MIN (st.cbInQue, bytes_to_read);
-	  /* Otherwise, if VMIN > 0, VTIME == 0, we have to wait until
-	     VMIN bytes are available in the inbound queue. */
+	  /* Otherwise, if MIN > 0, TIME == 0, we have to wait until
+	     MIN bytes are available in the inbound queue. */
 	  else if (minchars && !vtime_)
 	    wait_for_vmin = true;
 	}


                 reply	other threads:[~2020-03-26 11:27 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200326112701.E95753876057@sourceware.org \
    --to=corinna@sourceware.org \
    --cc=cygwin-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).