Commit 2bb5bfa7 authored by Max Kellermann's avatar Max Kellermann

directory: convert "stat" to a bool

parent 624e7a44
...@@ -43,7 +43,7 @@ struct directory { ...@@ -43,7 +43,7 @@ struct directory {
time_t mtime; time_t mtime;
ino_t inode; ino_t inode;
dev_t device; 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)]; char path[sizeof(long)];
}; };
......
...@@ -86,7 +86,7 @@ directory_set_stat(struct directory *dir, const struct stat *st) ...@@ -86,7 +86,7 @@ directory_set_stat(struct directory *dir, const struct stat *st)
{ {
dir->inode = st->st_ino; dir->inode = st->st_ino;
dir->device = st->st_dev; dir->device = st->st_dev;
dir->stat = 1; dir->stat = true;
} }
static void static void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment