From ad30df62f8bdf32d503df14d0e28c7df597ba306 Mon Sep 17 00:00:00 2001
From: Thomas Voss <mail@thomasvoss.com>
Date: Thu, 7 Nov 2024 19:59:34 +0100
Subject: Fix incorrect usage of commented-out pledge()

---
 src/main.c | 4 ++--
 1 file 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]);
-- 
cgit v1.2.3