true(1), false(1): adds null unveils

This commit is contained in:
Emma Tebibyte 2024-08-28 00:24:35 -06:00
parent 8fd5bdf5a6
commit efedcd3ae4
Signed by: emma
GPG Key ID: 06FA419A1698C270
2 changed files with 6 additions and 4 deletions

View File

@ -8,12 +8,13 @@
*/
#ifdef __OpenBSD__
# include <unistd.h> /* pledge(2) */
# include <unistd.h> /* NULL, pledge(2), unveil(2) */
#endif
int main(void) {
#ifdef __OpenBSD__
pledge(NULL, NULL);
(void)pledge(NULL, NULL);
(void)unveil(NULL, NULL);
#endif
return 1;
}

View File

@ -8,11 +8,12 @@
*/
#ifdef __OpenBSD__
# include <unistd.h> /* pledge(2) */
# include <unistd.h> /* NULL, pledge(2), unveil(2) */
#endif
int main(void) {
#ifdef __OpenBSD__
pledge(NULL, NULL);
(void)pledge(NULL, NULL);
(void)unveil(NULL, NULL);
#endif
}