1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-24 03:55:06 +00:00

IRCClient: Use pledge()

This commit is contained in:
Andreas Kling 2020-01-11 23:53:54 +01:00
parent 2067c003ff
commit 2b20e8e187

View file

@ -5,8 +5,18 @@
int main(int argc, char** argv) 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); GApplication app(argc, argv);
if (pledge("stdio inet dns unix shared_buffer rpath", nullptr) < 0) {
perror("pledge");
return 1;
}
IRCAppWindow app_window; IRCAppWindow app_window;
app_window.show(); app_window.show();