public inbox for cygwin-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] Cygwin: POSIX msg queues: slightly rephrase get_mqinfo
@ 2021-05-25 14:56 Corinna Vinschen
  0 siblings, 0 replies; only message in thread
From: Corinna Vinschen @ 2021-05-25 14:56 UTC (permalink / raw)
  To: cygwin-cvs

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

commit a4e074672aa61bd8b8a3b9493b9bdc85683e7604
Author: Corinna Vinschen <corinna@vinschen.de>
Date:   Tue May 25 16:42:44 2021 +0200

    Cygwin: POSIX msg queues: slightly rephrase get_mqinfo
    
    Signed-off-by: Corinna Vinschen <corinna@vinschen.de>

Diff:
---
 winsup/cygwin/posix_ipc.cc | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/winsup/cygwin/posix_ipc.cc b/winsup/cygwin/posix_ipc.cc
index 1f913c8d7..300a3f46f 100644
--- a/winsup/cygwin/posix_ipc.cc
+++ b/winsup/cygwin/posix_ipc.cc
@@ -500,10 +500,9 @@ get_mqinfo (cygheap_fdget &fd)
   if (fd >= 0)
     {
       fhandler_mqueue *fh = fd->is_mqueue ();
-      if (!fh)
-	set_errno (EINVAL);
-      else
+      if (fh)
 	return fh->mqinfo ();
+      set_errno (EINVAL);
     }
   return NULL;
 }


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

only message in thread, other threads:[~2021-05-25 14:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-25 14:56 [newlib-cygwin] Cygwin: POSIX msg queues: slightly rephrase get_mqinfo Corinna Vinschen

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).