summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Eden <yamakuzure@gmx.net>2018-08-20 09:16:39 +0200
committerSven Eden <yamakuzure@gmx.net>2018-08-24 16:47:08 +0200
commit7d30ad49d869df6662ac4ce0023f91d2bb364c87 (patch)
treea45a5c0d87fe0fef9783d62f89f19aadada83681
parent4fd2b00e22f1de3e2b187da090d9e33109269031 (diff)
Prep v239: path-util.[hc] - Masked path_simplify_and_warn() - Nowhere needed.
-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