mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-12 20:28:20 +00:00
vfs: make 'File_io_service::read_ready' const
... and replace pointer argument to const reference. Issue #4706
This commit is contained in:
committed by
Christian Helmuth
parent
1b1a9ca95c
commit
ca0d3757cc
@ -965,12 +965,12 @@ class Vfs::Dir_file_system : public File_system
|
||||
return FTRUNCATE_ERR_NO_PERM;
|
||||
}
|
||||
|
||||
bool read_ready(Vfs_handle *handle) override
|
||||
bool read_ready(Vfs_handle const &handle) const override
|
||||
{
|
||||
if (&handle->fs() == this)
|
||||
if (&handle.fs() == this)
|
||||
return true;
|
||||
|
||||
return handle->fs().read_ready(handle);
|
||||
return handle.fs().read_ready(handle);
|
||||
}
|
||||
|
||||
bool write_ready(Vfs_handle const &handle) const override
|
||||
|
Reference in New Issue
Block a user