summaryrefslogtreecommitdiff
path: root/openbsd-compat/regress
diff options
context:
space:
mode:
Diffstat (limited to 'openbsd-compat/regress')
-rw-r--r--openbsd-compat/regress/closefromtest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsd-compat/regress/closefromtest.c b/openbsd-compat/regress/closefromtest.c
index feb1b567d..bb129fa16 100644
--- a/openbsd-compat/regress/closefromtest.c
+++ b/openbsd-compat/regress/closefromtest.c
@@ -38,7 +38,7 @@ main(void)
38 char buf[512]; 38 char buf[512];
39 39
40 for (i = 0; i < NUM_OPENS; i++) 40 for (i = 0; i < NUM_OPENS; i++)
41 if ((fds[i] = open("/dev/null", "r")) == -1) 41 if ((fds[i] = open("/dev/null", O_RDONLY)) == -1)
42 exit(0); /* can't test */ 42 exit(0); /* can't test */
43 max = i - 1; 43 max = i - 1;
44 44