aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-10-31 12:40:01 +0100
committerThomas Voss <mail@thomasvoss.com> 2024-10-31 12:40:01 +0100
commit87b3bc8c4015222b463e713f9b68daebb95515c9 (patch)
treea244520e2993704b72286041e47e6fbe604e3851 /src/main.c
parent65ddecb4744b8f8c9d289ac35daa9be5e2236671 (diff)
Try to improve readability
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c7
1 files 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,15 +57,14 @@ 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, "");
if (streq(nl_langinfo(CODESET), "UTF-8")) {