summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/basic/path-util.c2
-rw-r--r--src/basic/path-util.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/basic/path-util.c b/src/basic/path-util.c
index 45713d6d7..12e91c40a 100644
--- a/src/basic/path-util.c
+++ b/src/basic/path-util.c
@@ -1015,6 +1015,7 @@ bool empty_or_root(const char *root) {
return root[strspn(root, "/")] == 0;
}
+#if 0 /// UNNEEDED by elogind
int path_simplify_and_warn(
char *path,
unsigned flag,
@@ -1061,3 +1062,4 @@ int path_simplify_and_warn(
return 0;
}
+#endif // 0
diff --git a/src/basic/path-util.h b/src/basic/path-util.h
index 53e548d8c..fd571e9ca 100644
--- a/src/basic/path-util.h
+++ b/src/basic/path-util.h
@@ -178,6 +178,7 @@ static inline const char *empty_to_root(const char *path) {
return isempty(path) ? "/" : path;
}
+#if 0 /// UNNEEDED by elogind
enum {
PATH_CHECK_FATAL = 1 << 0, /* If not set, then error message is appended with 'ignoring'. */
PATH_CHECK_ABSOLUTE = 1 << 1,
@@ -185,3 +186,4 @@ enum {
};
int path_simplify_and_warn(char *path, unsigned flag, const char *unit, const char *filename, unsigned line, const char *lvalue);
+#endif // 0