public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] rt/tst-mqueue4.c: Fix wrong number of argument for mq_open
@ 2023-06-22 4:53 Siddhesh Poyarekar
0 siblings, 0 replies; only message in thread
From: Siddhesh Poyarekar @ 2023-06-22 4:53 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=131af38694627f9e5aee13fdc301bf2010759a1b
commit 131af38694627f9e5aee13fdc301bf2010759a1b
Author: Frederic Berat <fberat@redhat.com>
Date: Tue Jun 20 20:19:06 2023 +0200
rt/tst-mqueue4.c: Fix wrong number of argument for mq_open
The mq_open routine should only get either 2 or 4 arguments, this test
wrongly passed 3.
Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
Diff:
---
rt/tst-mqueue4.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/rt/tst-mqueue4.c b/rt/tst-mqueue4.c
index fe456287a3..9fcaef107b 100644
--- a/rt/tst-mqueue4.c
+++ b/rt/tst-mqueue4.c
@@ -175,14 +175,14 @@ do_test (void)
result = 1;
}
- q2 = mq_open (name, O_RDONLY, 0600);
+ q2 = mq_open (name, O_RDONLY);
if (q2 == (mqd_t) -1)
{
printf ("mq_open without O_CREAT failed with %m\n");
result = 1;
}
- mqd_t q3 = mq_open (name, O_RDONLY, 0600);
+ mqd_t q3 = mq_open (name, O_RDONLY);
if (q3 == (mqd_t) -1)
{
printf ("mq_open without O_CREAT failed with %m\n");
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-06-22 4:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-22 4:53 [glibc] rt/tst-mqueue4.c: Fix wrong number of argument for mq_open Siddhesh Poyarekar
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).