From 8310a9484370cc05f35b5fd49d49088c4cbffecf Mon Sep 17 00:00:00 2001 From: Emery Hemingway Date: Thu, 22 Mar 2018 12:32:40 +0100 Subject: [PATCH] os/path: const 'string' accessor Ref #2160 --- repos/os/include/os/path.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/repos/os/include/os/path.h b/repos/os/include/os/path.h index 975b2d76c8..4d7e070bbd 100644 --- a/repos/os/include/os/path.h +++ b/repos/os/include/os/path.h @@ -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; }