diff options
author | Max Kellermann <max@duempel.org> | 2013-01-02 23:06:20 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-03 01:10:47 +0100 |
commit | 3e8047e5831b4cc7dabae596746066698ad7c8cd (patch) | |
tree | 51cf8e3cc3b5b373f11ffbd6d7c0b34b3c0acb6c /src/UpdateContainer.cxx | |
parent | 440ac51cf0250904813dfc9398ca8c9e6467328f (diff) | |
download | mpd-3e8047e5831b4cc7dabae596746066698ad7c8cd.tar.gz mpd-3e8047e5831b4cc7dabae596746066698ad7c8cd.tar.xz mpd-3e8047e5831b4cc7dabae596746066698ad7c8cd.zip |
Directory: rename struct directory to Directory
Diffstat (limited to '')
-rw-r--r-- | src/UpdateContainer.cxx | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/UpdateContainer.cxx b/src/UpdateContainer.cxx index 1d6508457..07bf0cee1 100644 --- a/src/UpdateContainer.cxx +++ b/src/UpdateContainer.cxx @@ -42,11 +42,11 @@ extern "C" { * * The caller must lock the database. */ -static struct directory * -make_directory_if_modified(struct directory *parent, const char *name, +static Directory * +make_directory_if_modified(Directory *parent, const char *name, const struct stat *st) { - directory *directory = parent->FindChild(name); + Directory *directory = parent->FindChild(name); // directory exists already if (directory != NULL) { @@ -66,7 +66,7 @@ make_directory_if_modified(struct directory *parent, const char *name, } bool -update_container_file(struct directory *directory, +update_container_file(Directory *directory, const char *name, const struct stat *st, const struct decoder_plugin *plugin) @@ -75,8 +75,7 @@ update_container_file(struct directory *directory, return false; db_lock(); - struct directory *contdir = - make_directory_if_modified(directory, name, st); + Directory *contdir = make_directory_if_modified(directory, name, st); if (contdir == NULL) { /* not modified */ db_unlock(); |