From 87b3bc8c4015222b463e713f9b68daebb95515c9 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Thu, 31 Oct 2024 12:40:01 +0100 Subject: Try to improve readability --- src/main.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main.c b/src/main.c index e83f615..55dd706 100644 --- a/src/main.c +++ b/src/main.c @@ -57,14 +57,13 @@ main(int argc, char **argv) /* TODO: Can we test this in an OpenBSD VM? */ #if 0 && defined(__OpenBSD__) - const char *promises = #if GIT_GRAB - "stdio rpath prot exec"; + if (pledge("stdio rpath prot exec", NULL) == -1) + cerr(EXIT_FATAL, "pledge:"); #else - "stdio rpath"; -#endif if (pledge("stdio rpath", NULL) == -1) cerr(EXIT_FATAL, "pledge:"); +#endif #endif setlocale(LC_ALL, ""); -- cgit v1.2.3