diff options
| author | Lukas Oesch <lukasoesch20@gmail.com> | 2026-03-15 18:51:26 +0100 |
|---|---|---|
| committer | Lukas Oesch <lukasoesch20@gmail.com> | 2026-03-17 16:43:13 +0100 |
| commit | 6d8ae9c708d43ab3d98d6a1f2fbb4e5f74a4a2aa (patch) | |
| tree | fe737124834802a6592b3278b55faa5b75792cea /kernel/filesystem/src/file_descriptor_table.cpp | |
| parent | f52f4eb4aff3f8346c9ba73bcc57db4ca6fc6cb2 (diff) | |
| download | teachos-6d8ae9c708d43ab3d98d6a1f2fbb4e5f74a4a2aa.tar.xz teachos-6d8ae9c708d43ab3d98d6a1f2fbb4e5f74a4a2aa.zip | |
improve constness
Diffstat (limited to 'kernel/filesystem/src/file_descriptor_table.cpp')
| -rw-r--r-- | kernel/filesystem/src/file_descriptor_table.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/filesystem/src/file_descriptor_table.cpp b/kernel/filesystem/src/file_descriptor_table.cpp index 49c08cd..eb9a281 100644 --- a/kernel/filesystem/src/file_descriptor_table.cpp +++ b/kernel/filesystem/src/file_descriptor_table.cpp @@ -47,7 +47,7 @@ namespace filesystem return -1; } - auto file_descriptor_table::get_file(int fd) -> std::optional<open_file_description> + auto file_descriptor_table::get_file(int fd) const -> std::optional<open_file_description> { if (fd < 0) { |
