path-util: make path_equal_or_inode_same static inline

No functional change, just refactoring.
This commit is contained in:
Mike Yuan
2023-07-11 18:01:49 +08:00
parent 26b682e816
commit e3c9e09383
2 changed files with 4 additions and 5 deletions
-4
View File
@@ -485,10 +485,6 @@ int path_compare(const char *a, const char *b) {
}
}
bool path_equal_or_inode_same(const char *a, const char *b, int flags) {
return path_equal(a, b) || inode_same(a, b, flags) > 0;
}
int path_compare_filename(const char *a, const char *b) {
_cleanup_free_ char *fa = NULL, *fb = NULL;
int r, j, k;