From 3031fd2a7d81b78aabea55d74b015807b4ae8d09 Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Mon, 7 Sep 2020 15:52:24 +0200 Subject: [PATCH] os/vfs.h: const 'Directory' arg for 'Watch_handler' The watch mechanism should not require a reference to a mutable directory. --- repos/os/include/os/vfs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repos/os/include/os/vfs.h b/repos/os/include/os/vfs.h index f754e40c26..7917c33439 100644 --- a/repos/os/include/os/vfs.h +++ b/repos/os/include/os/vfs.h @@ -630,7 +630,7 @@ class Genode::Watch_handler : public Vfs::Watch_response_handler, public: - Watch_handler(Directory &dir, Directory::Path const &rel_path, + Watch_handler(Directory const &dir, Directory::Path const &rel_path, T &obj, void (T::*member)()) : Watcher(dir, rel_path, *this), _obj(obj), _member(member)