aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2011-11-27 20:10:54 +0100
committerMax Kellermann <max@duempel.org>2011-11-27 20:11:45 +0100
commit2bb5bfa74e52c3a547e5f46e25156cc8d7cade65 (patch)
tree3ccdff132b769390ac9b08ef84984040b848cd6c /src
parent624e7a447d5cdf38e176acad0ef2ec6543397f46 (diff)
downloadmpd-2bb5bfa74e52c3a547e5f46e25156cc8d7cade65.tar.gz
mpd-2bb5bfa74e52c3a547e5f46e25156cc8d7cade65.tar.xz
mpd-2bb5bfa74e52c3a547e5f46e25156cc8d7cade65.zip
directory: convert "stat" to a bool
Diffstat (limited to '')
-rw-r--r--src/directory.h2
-rw-r--r--src/update_walk.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/directory.h b/src/directory.h
index 151cf5423..5c36291eb 100644
--- a/src/directory.h
+++ b/src/directory.h
@@ -43,7 +43,7 @@ struct directory {
time_t mtime;
ino_t inode;
dev_t device;
- unsigned stat; /* not needed if ino_t == dev_t == 0 is impossible */
+ bool stat; /* not needed if ino_t == dev_t == 0 is impossible */
char path[sizeof(long)];
};
diff --git a/src/update_walk.c b/src/update_walk.c
index bf3c8f54b..76c07773b 100644
--- a/src/update_walk.c
+++ b/src/update_walk.c
@@ -86,7 +86,7 @@ directory_set_stat(struct directory *dir, const struct stat *st)
{
dir->inode = st->st_ino;
dir->device = st->st_dev;
- dir->stat = 1;
+ dir->stat = true;
}
static void