Merge pull request #8953 from yuwata/bus-macro

core: simplify dbus properties
This commit is contained in:
Lennart Poettering
2018-05-10 22:51:17 -07:00
committed by GitHub
20 changed files with 77 additions and 178 deletions
+3
View File
@@ -164,3 +164,6 @@ static inline const char *skip_dev_prefix(const char *p) {
}
bool empty_or_root(const char *root);
static inline const char *empty_to_root(const char *path) {
return isempty(path) ? "/" : path;
}
+1 -1
View File
@@ -58,7 +58,7 @@ static inline const char *empty_to_null(const char *p) {
return isempty(p) ? NULL : p;
}
static inline const char *strdash_if_empty(const char *str) {
static inline const char *empty_to_dash(const char *str) {
return isempty(str) ? "-" : str;
}