diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-11-07 19:59:34 +0100 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-11-07 19:59:34 +0100 |
commit | ad30df62f8bdf32d503df14d0e28c7df597ba306 (patch) | |
tree | 70eede42bc72b27d8f35e45525c833a5518d51f7 | |
parent | e251c6463913bcd7c9c40b4dc168010f6de68b5a (diff) |
Fix incorrect usage of commented-out pledge()
-rw-r--r-- | src/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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]); |