mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-20 01:11:07 +00:00
ChanViewer: Use pledge()
This app should be ported to LibProtocol, which would allow it to drop "inet" and "dns" as well.
This commit is contained in:
parent
e588a41ac9
commit
22cf24cba7
Notes:
sideshowbarker
2024-07-19 10:08:07 +09:00
Author: https://github.com/awesomekling
Commit: 22cf24cba7
1 changed files with 11 additions and 0 deletions
|
@ -10,11 +10,22 @@
|
||||||
#include <LibGUI/GStatusBar.h>
|
#include <LibGUI/GStatusBar.h>
|
||||||
#include <LibGUI/GTableView.h>
|
#include <LibGUI/GTableView.h>
|
||||||
#include <LibGUI/GWindow.h>
|
#include <LibGUI/GWindow.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
int main(int argc, char** argv)
|
int main(int argc, char** argv)
|
||||||
{
|
{
|
||||||
|
if (pledge("stdio dns inet shared_buffer rpath cpath fattr", nullptr) < 0) {
|
||||||
|
perror("pledge");
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
GApplication app(argc, argv);
|
GApplication app(argc, argv);
|
||||||
|
|
||||||
|
if (pledge("stdio dns inet shared_buffer rpath", nullptr) < 0) {
|
||||||
|
perror("pledge");
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
auto window = GWindow::construct();
|
auto window = GWindow::construct();
|
||||||
window->set_title("ChanViewer");
|
window->set_title("ChanViewer");
|
||||||
window->set_rect(100, 100, 800, 500);
|
window->set_rect(100, 100, 800, 500);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue