summaryrefslogtreecommitdiff
path: root/Userland/Utilities/tail.cpp
diff options
context:
space:
mode:
authorAli Mohammad Pur <ali.mpfard@gmail.com>2021-05-12 13:56:43 +0430
committerLinus Groh <mail@linusgroh.de>2021-05-12 11:00:45 +0100
commita91a49337c5992d64b30f493eea1eb492792b667 (patch)
treeb665e2c0b31a9935ca8a8f8b5b71bbadf476e32f /Userland/Utilities/tail.cpp
parent422ef7904e9eb6be1182421a7529ed0d5e00991f (diff)
downloadserenity-a91a49337c5992d64b30f493eea1eb492792b667.zip
LibCore+Everywhere: Move OpenMode out of IODevice
...and make it an enum class so people don't omit "OpenMode".
Diffstat (limited to 'Userland/Utilities/tail.cpp')
-rw-r--r--Userland/Utilities/tail.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Utilities/tail.cpp b/Userland/Utilities/tail.cpp
index 60c5676aa1..84b7a5aac9 100644
--- a/Userland/Utilities/tail.cpp
+++ b/Userland/Utilities/tail.cpp
@@ -94,7 +94,7 @@ int main(int argc, char* argv[])
args_parser.parse(argc, argv);
auto f = Core::File::construct(file);
- if (!f->open(Core::IODevice::ReadOnly)) {
+ if (!f->open(Core::OpenMode::ReadOnly)) {
fprintf(stderr, "Error opening file %s: %s\n", file, strerror(errno));
exit(1);
}