mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-08 23:42:53 +03:00
date: Use pledge()
This commit is contained in:
parent
4b0e0bd9b8
commit
03aea11589
Notes:
sideshowbarker
2024-07-19 09:14:05 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/03aea115897
@ -32,6 +32,11 @@
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
if (pledge("stdio", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
||||
time_t now = time(nullptr);
|
||||
|
||||
if (argc == 2 && !strcmp(argv[1], "-u")) {
|
||||
|
Loading…
Reference in New Issue
Block a user