From: Sven Eden Date: Mon, 20 Aug 2018 07:16:39 +0000 (+0200) Subject: Prep v239: path-util.[hc] - Masked path_simplify_and_warn() - Nowhere needed. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=7d30ad49d869df6662ac4ce0023f91d2bb364c87 Prep v239: path-util.[hc] - Masked path_simplify_and_warn() - Nowhere needed. --- 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