mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 19:59:17 +00:00
IRCClient: Use pledge()
This commit is contained in:
parent
2067c003ff
commit
2b20e8e187
Notes:
sideshowbarker
2024-07-19 10:10:01 +09:00
Author: https://github.com/awesomekling
Commit: 2b20e8e187
1 changed files with 10 additions and 0 deletions
|
@ -5,8 +5,18 @@
|
|||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
if (pledge("stdio inet dns unix shared_buffer cpath rpath fattr", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
||||
GApplication app(argc, argv);
|
||||
|
||||
if (pledge("stdio inet dns unix shared_buffer rpath", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
||||
IRCAppWindow app_window;
|
||||
app_window.show();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue