hostname: Use pledge()
This commit is contained in:
parent
60c8d2379a
commit
3b3b4b0e04
Notes:
sideshowbarker
2024-07-19 09:14:13 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/3b3b4b0e04a
1 changed files with 5 additions and 0 deletions
|
@ -31,6 +31,11 @@
|
|||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
if (pledge("stdio", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
||||
(void)argc;
|
||||
(void)argv;
|
||||
char buffer[HOST_NAME_MAX];
|
||||
|
|
Loading…
Add table
Reference in a new issue