summaryrefslogtreecommitdiff
path: root/Userland/Utilities
diff options
context:
space:
mode:
authorJunior Rantila <junior.rantila@gmail.com>2022-01-09 06:16:27 +0100
committerAli Mohammad Pur <Ali.mpfard@gmail.com>2022-01-09 11:16:00 +0330
commitabaee3a3250e39b24b8e2338a04eb3245862d9a1 (patch)
tree3f2f9d5aa1de38149e29887c98130eff96f03660 /Userland/Utilities
parent7801e38af16ff7aa27bdac92baa7abfe6ae47c3c (diff)
downloadserenity-abaee3a3250e39b24b8e2338a04eb3245862d9a1.zip
beep: Port to LibMain :^)
Diffstat (limited to 'Userland/Utilities')
-rw-r--r--Userland/Utilities/CMakeLists.txt1
-rw-r--r--Userland/Utilities/beep.cpp9
2 files changed, 6 insertions, 4 deletions
diff --git a/Userland/Utilities/CMakeLists.txt b/Userland/Utilities/CMakeLists.txt
index 04d38f7279..fcc73de8db 100644
--- a/Userland/Utilities/CMakeLists.txt
+++ b/Userland/Utilities/CMakeLists.txt
@@ -58,6 +58,7 @@ target_link_libraries(arp LibMain)
target_link_libraries(asctl LibAudio LibMain)
target_link_libraries(base64 LibMain)
target_link_libraries(basename LibMain)
+target_link_libraries(beep LibMain)
target_link_libraries(blockdev LibMain)
target_link_libraries(bt LibSymbolication LibMain)
target_link_libraries(cal LibMain)
diff --git a/Userland/Utilities/beep.cpp b/Userland/Utilities/beep.cpp
index b0cca536d6..dc5314b363 100644
--- a/Userland/Utilities/beep.cpp
+++ b/Userland/Utilities/beep.cpp
@@ -1,13 +1,14 @@
/*
- * Copyright (c) 2020, the SerenityOS developers.
+ * Copyright (c) 2020-2022, the SerenityOS developers.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
-#include <unistd.h>
+#include <LibCore/System.h>
+#include <LibMain/Main.h>
-int main()
+ErrorOr<int> serenity_main(Main::Arguments)
{
- sysbeep();
+ TRY(Core::System::beep());
return 0;
}