os/path: const 'string' accessor

Ref #2160
This commit is contained in:
Emery Hemingway 2018-03-22 12:32:40 +01:00 committed by Christian Helmuth
parent e1a079954b
commit 8310a94843

View File

@ -250,8 +250,9 @@ class Genode::Path_base
import(path, pwd);
}
char *base() { return _path; }
char const *base() const { return _path; }
char *base() { return _path; }
char const *base() const { return _path; }
char const *string() const { return _path; }
size_t max_len() { return _path_max_len; }