diff options
author | alexmajor <5017286+alexmajor@users.noreply.github.com> | 2022-01-21 21:29:29 -0500 |
---|---|---|
committer | Brian Gianforcaro <b.gianfo@gmail.com> | 2022-02-01 04:58:24 +0000 |
commit | 6deb03233542f97e630087ba1f73ad09fee54faa (patch) | |
tree | 160a43e11c8217f119bc53688d93b13fd1d49db9 /Userland | |
parent | 742cca4bfe721d1656e9a48eadb89e860831e8b5 (diff) | |
download | serenity-6deb03233542f97e630087ba1f73ad09fee54faa.zip |
sync: Port to LibMain
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Utilities/CMakeLists.txt | 3 | ||||
-rw-r--r-- | Userland/Utilities/sync.cpp | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/Userland/Utilities/CMakeLists.txt b/Userland/Utilities/CMakeLists.txt index 69e481f1b6..d7833e6060 100644 --- a/Userland/Utilities/CMakeLists.txt +++ b/Userland/Utilities/CMakeLists.txt @@ -164,8 +164,9 @@ target_link_libraries(sql LibLine LibSQL LibIPC) target_link_libraries(sort LibMain) target_link_libraries(stat LibMain) target_link_libraries(strace LibMain) -target_link_libraries(tac LibMain) target_link_libraries(su LibCrypt LibMain) +target_link_libraries(sync LibMain) +target_link_libraries(tac LibMain) target_link_libraries(tail LibMain) target_link_libraries(tar LibArchive LibCompress) target_link_libraries(telws LibProtocol LibLine) diff --git a/Userland/Utilities/sync.cpp b/Userland/Utilities/sync.cpp index 1323453089..30b0d6dd77 100644 --- a/Userland/Utilities/sync.cpp +++ b/Userland/Utilities/sync.cpp @@ -1,12 +1,14 @@ /* * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org> + * Copyright (c) 2022, Alex Major * * SPDX-License-Identifier: BSD-2-Clause */ +#include <LibMain/Main.h> #include <unistd.h> -int main(int, char**) +ErrorOr<int> serenity_main(Main::Arguments) { sync(); return 0; |