about summary refs log tree commit diff
path: root/rt
diff options
context:
space:
mode:
authorFrederic Berat <fberat@redhat.com>2023-06-20 20:19:06 +0200
committerSiddhesh Poyarekar <siddhesh@sourceware.org>2023-06-22 00:21:13 -0400
commit131af38694627f9e5aee13fdc301bf2010759a1b (patch)
tree58db8357d3e4eb8a28909a14cf15e5a0d01ae4d9 /rt
parent0371c236233ee7e491937435952c60f50f7e45ea (diff)
downloadglibc-131af38694627f9e5aee13fdc301bf2010759a1b.tar.gz
glibc-131af38694627f9e5aee13fdc301bf2010759a1b.tar.xz
glibc-131af38694627f9e5aee13fdc301bf2010759a1b.zip
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>
Diffstat (limited to 'rt')
-rw-r--r--rt/tst-mqueue4.c4
1 files 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");