aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-11-07 19:59:34 +0100
committerThomas Voss <mail@thomasvoss.com> 2024-11-07 19:59:34 +0100
commitad30df62f8bdf32d503df14d0e28c7df597ba306 (patch)
tree70eede42bc72b27d8f35e45525c833a5518d51f7 /src/main.c
parente251c6463913bcd7c9c40b4dc168010f6de68b5a (diff)
Fix incorrect usage of commented-out pledge()
Diffstat (limited to 'src/main.c')
-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]);