aboutsummaryrefslogtreecommitdiffstats
path: root/nihil.posix/read_file.ccm
diff options
context:
space:
mode:
authorLexi Winter <lexi@le-fay.org>2025-06-30 07:51:23 +0100
committerLexi Winter <lexi@le-fay.org>2025-06-30 07:51:23 +0100
commit034cd404a129103a8dd7747e6bd00ffd5550da93 (patch)
treed27946517d4d9333abd26ac50bbd4a436093e2ce /nihil.posix/read_file.ccm
parent3e7902f7d790a486d3d9cb978df193f07f3a6ad9 (diff)
downloadnihil-034cd404a129103a8dd7747e6bd00ffd5550da93.tar.gz
nihil-034cd404a129103a8dd7747e6bd00ffd5550da93.tar.bz2
refactoring
Diffstat (limited to 'nihil.posix/read_file.ccm')
-rw-r--r--nihil.posix/read_file.ccm2
1 files changed, 1 insertions, 1 deletions
diff --git a/nihil.posix/read_file.ccm b/nihil.posix/read_file.ccm
index be9e102..3b4fd5b 100644
--- a/nihil.posix/read_file.ccm
+++ b/nihil.posix/read_file.ccm
@@ -32,7 +32,7 @@ read_file(std::filesystem::path const &filename,
std::output_iterator<char> auto &&iter)
-> std::expected<void, error>
{
- auto file = co_await open(filename, O_RDONLY);
+ auto file = co_await open(filename, open_read);
auto constexpr bufsize = std::size_t{1024};
auto buffer = std::array<char, bufsize>{};