From 2bb5bfa74e52c3a547e5f46e25156cc8d7cade65 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 27 Nov 2011 20:10:54 +0100 Subject: directory: convert "stat" to a bool --- src/directory.h | 2 +- src/update_walk.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 -- cgit v1.2.3