diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-10-31 12:40:01 +0100 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-10-31 12:40:01 +0100 |
commit | 87b3bc8c4015222b463e713f9b68daebb95515c9 (patch) | |
tree | a244520e2993704b72286041e47e6fbe604e3851 /src | |
parent | 65ddecb4744b8f8c9d289ac35daa9be5e2236671 (diff) |
Try to improve readability
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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")) { |