aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-02-09 10:44:19 +0100
committerMax Kellermann <max@duempel.org>2014-02-09 10:46:39 +0100
commitace3f37af4703718e5eda48ad5de7a23b083b58a (patch)
tree72e7d7bb1c741be8f4e3ac7329276ef836b77bdc
parent37b68996605dbea3648262d6bd3585f74f71e8b8 (diff)
downloadmpd-ace3f37af4703718e5eda48ad5de7a23b083b58a.tar.gz
mpd-ace3f37af4703718e5eda48ad5de7a23b083b58a.tar.xz
mpd-ace3f37af4703718e5eda48ad5de7a23b083b58a.zip
db/update/Walk: rename find_inode_ancestor() to FindAncestorLoop()
Diffstat (limited to '')
-rw-r--r--src/db/update/Walk.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/db/update/Walk.cxx b/src/db/update/Walk.cxx
index 8acabe7ea..55a275748 100644
--- a/src/db/update/Walk.cxx
+++ b/src/db/update/Walk.cxx
@@ -153,8 +153,8 @@ update_directory_stat(Storage &storage, Directory &directory)
#endif
static int
-find_inode_ancestor(Storage &storage, Directory *parent,
- unsigned inode, unsigned device)
+FindAncestorLoop(Storage &storage, Directory *parent,
+ unsigned inode, unsigned device)
{
#ifndef WIN32
while (parent) {
@@ -218,7 +218,7 @@ UpdateWalk::UpdateDirectoryChild(Directory &directory,
if (info.IsRegular()) {
UpdateRegularFile(directory, name, info);
} else if (info.IsDirectory()) {
- if (find_inode_ancestor(storage, &directory,
+ if (FindAncestorLoop(storage, &directory,
info.inode, info.device))
return;
@@ -390,7 +390,7 @@ UpdateWalk::DirectoryMakeChildChecked(Directory &parent,
FileInfo info;
if (!GetInfo(storage, uri_utf8, info) ||
- find_inode_ancestor(storage, &parent, info.inode, info.device))
+ FindAncestorLoop(storage, &parent, info.inode, info.device))
return nullptr;
if (SkipSymlink(&parent, name_utf8))