summaryrefslogtreecommitdiff
path: root/Userland/Utilities
diff options
context:
space:
mode:
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;
}