mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 17:10:23 +00:00
shuf: Port to LibMain
This commit is contained in:
parent
4e02b204ef
commit
176de579f2
Notes:
sideshowbarker
2024-07-17 20:20:30 +09:00
Author: https://github.com/mhermier Commit: https://github.com/SerenityOS/serenity/commit/176de579f25 Pull-request: https://github.com/SerenityOS/serenity/pull/12088 Reviewed-by: https://github.com/kennethmyhra
2 changed files with 5 additions and 5 deletions
|
@ -147,6 +147,7 @@ target_link_libraries(pwd LibMain)
|
|||
target_link_libraries(rev LibMain)
|
||||
target_link_libraries(run-tests LibRegex)
|
||||
target_link_libraries(shot LibGUI)
|
||||
target_link_libraries(shuf LibMain)
|
||||
target_link_libraries(sql LibLine LibSQL LibIPC)
|
||||
target_link_libraries(stat LibMain)
|
||||
target_link_libraries(strace LibMain)
|
||||
|
|
|
@ -7,17 +7,16 @@
|
|||
#include <AK/Random.h>
|
||||
#include <AK/String.h>
|
||||
#include <AK/Vector.h>
|
||||
#include <LibCore/System.h>
|
||||
#include <LibMain/Main.h>
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
|
||||
int main([[maybe_unused]] int argc, [[maybe_unused]] char** argv)
|
||||
ErrorOr<int> serenity_main([[maybe_unused]] Main::Arguments arguments)
|
||||
{
|
||||
if (pledge("stdio", nullptr) > 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
TRY(Core::System::pledge("stdio"sv));
|
||||
|
||||
Vector<String> lines;
|
||||
|
||||
|
|
Loading…
Reference in a new issue