aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 120a88e..5f06910 100644
--- a/src/main.c
+++ b/src/main.c
@@ -188,7 +188,7 @@ main(int argc, char **argv)
argv = (static char *[]){"-"};
/* TODO: Can we test this in an OpenBSD VM? */
#if 0 && defined(__OpenBSD__)
- if (pledge("stdio") == -1)
+ if (pledge("stdio", nullptr) == -1)
cerr(EXIT_FATAL, "pledge:");
#endif
} else {
@@ -429,7 +429,7 @@ getfstream(int globc, char **globv)
/* TODO: Can we test this in an OpenBSD VM? */
#if 0 && defined(__OpenBSD__)
- if (pledge("stdio rpath") == -1)
+ if (pledge("stdio rpath", nullptr) == -1)
cerr(EXIT_FATAL, "pledge:");
#endif
close(fds[W]);