summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2021-10-25 10:08:27 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2021-10-25 10:08:27 +0000
commitdc6127af868faf1882f02fb1e60496c23bcdbe57 (patch)
treee960b628021dd38f4bfd9386680c7f2733648940 /regress
parent2933e3ab438322bf4514d58834747672f3d4d3fb (diff)
open() flags never contain O_CREAT, so variatic mode_t can be removed here also
Diffstat (limited to 'regress')
-rw-r--r--regress/sys/fifofs/fifotest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/regress/sys/fifofs/fifotest.c b/regress/sys/fifofs/fifotest.c
index 100bf69e472..fc08106d073 100644
--- a/regress/sys/fifofs/fifotest.c
+++ b/regress/sys/fifofs/fifotest.c
@@ -94,7 +94,7 @@ runtest(char *fifo, int flags, int timeout)
/* Note: O_RDWR not required by POSIX */
alarm(2);
- if ((fd = open(fifo, O_RDWR | flags, 0644)) == -1) {
+ if ((fd = open(fifo, O_RDWR | flags)) == -1) {
printf("open %s: %s\n", fifo, strerror(errno));
exit(1);
}
@@ -168,7 +168,7 @@ eof_writer(const char *fifo, int flags)
/* connect to FIFO. */
alarm(2);
- fd = open(fifo, O_WRONLY | flags, 0644);
+ fd = open(fifo, O_WRONLY | flags);
alarm(0);
if (fd == -1) {
printf("open %s O_WRONLY: %s\n", fifo, strerror(errno));