mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 18:02:05 -05:00
date: Use pledge()
This commit is contained in:
parent
4b0e0bd9b8
commit
03aea11589
1 changed files with 5 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue