directory: convert "stat" to a bool

This commit is contained in:
Max Kellermann 2011-11-27 20:10:54 +01:00
parent 624e7a447d
commit 2bb5bfa74e
2 changed files with 2 additions and 2 deletions

View File

@ -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)];
};

View File

@ -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