Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2021-05-25 17:42:44 +0300
committerCorinna Vinschen <corinna@vinschen.de>2021-05-25 17:42:44 +0300
commita4e074672aa61bd8b8a3b9493b9bdc85683e7604 (patch)
treead57ba77b4a0a73dc72f5a172a5c9754bd51c3fd
parent2cc914a34e505e7ce13b18d0f517b58a996a2d1e (diff)
Cygwin: POSIX msg queues: slightly rephrase get_mqinfo
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
-rw-r--r--winsup/cygwin/posix_ipc.cc5
1 files 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;
}