mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-22 23:55:12 +00:00
yes: Use pledge()
This commit is contained in:
@@ -25,9 +25,15 @@
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
if (pledge("stdio", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (argc > 1) {
|
||||
for (;;) {
|
||||
puts(argv[1]);
|
||||
|
||||
Reference in New Issue
Block a user