summaryrefslogtreecommitdiff
path: root/Userland/Utilities/which.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Utilities/which.cpp')
-rw-r--r--Userland/Utilities/which.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Utilities/which.cpp b/Userland/Utilities/which.cpp
index 96cceb0958..4403eb5abe 100644
--- a/Userland/Utilities/which.cpp
+++ b/Userland/Utilities/which.cpp
@@ -5,7 +5,7 @@
*/
#include <LibCore/ArgsParser.h>
-#include <LibCore/File.h>
+#include <LibCore/DeprecatedFile.h>
#include <LibCore/System.h>
#include <stdio.h>
#include <unistd.h>
@@ -20,7 +20,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
args_parser.add_positional_argument(filename, "Name of executable", "executable");
args_parser.parse(arguments);
- auto fullpath = Core::File::resolve_executable_from_environment({ filename, strlen(filename) });
+ auto fullpath = Core::DeprecatedFile::resolve_executable_from_environment({ filename, strlen(filename) });
if (!fullpath.has_value()) {
warnln("no '{}' in path", filename);
return 1;