diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-05-03 23:46:47 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-05-28 13:44:38 +0900 |
commit | 15bac3e8fddad0141f0e3992f6caf1ec1500aa82 (patch) | |
tree | afadab4bd6154682d0129148a7813f06c95e8fbb /src/basic/path-util.h | |
parent | 39d7af99c237e7d558075010b28983954875c353 (diff) | |
download | systemd-15bac3e8fddad0141f0e3992f6caf1ec1500aa82.tar.gz |
path-util: use path_equal() in empty_or_root()
Diffstat (limited to 'src/basic/path-util.h')
-rw-r--r-- | src/basic/path-util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/path-util.h b/src/basic/path-util.h index fad40bd8b6..9fa8b5b75c 100644 --- a/src/basic/path-util.h +++ b/src/basic/path-util.h @@ -190,7 +190,7 @@ static inline const char *skip_dev_prefix(const char *p) { return e ?: p; } -bool empty_or_root(const char *root); +bool empty_or_root(const char *path); static inline const char *empty_to_root(const char *path) { return isempty(path) ? "/" : path; } |