db/Directory: use "unsigned" for inode and device
This is what we get from the storage plugin via FileInfo. Fixes a compiler warning on Mac OS X where dev_t appears to be signed.
This commit is contained in:
parent
d25ef7eea4
commit
b7a7953757
|
@ -28,10 +28,8 @@
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#include <sys/types.h>
|
static constexpr unsigned DEVICE_INARCHIVE = -1;
|
||||||
|
static constexpr unsigned DEVICE_CONTAINER = -2;
|
||||||
#define DEVICE_INARCHIVE (dev_t)(-1)
|
|
||||||
#define DEVICE_CONTAINER (dev_t)(-2)
|
|
||||||
|
|
||||||
#define directory_for_each_child(pos, directory) \
|
#define directory_for_each_child(pos, directory) \
|
||||||
list_for_each_entry(pos, &(directory).children, siblings)
|
list_for_each_entry(pos, &(directory).children, siblings)
|
||||||
|
@ -81,8 +79,7 @@ struct Directory {
|
||||||
|
|
||||||
Directory *parent;
|
Directory *parent;
|
||||||
time_t mtime;
|
time_t mtime;
|
||||||
ino_t inode;
|
unsigned inode, device;
|
||||||
dev_t device;
|
|
||||||
bool have_stat; /* not needed if ino_t == dev_t == 0 is impossible */
|
bool have_stat; /* not needed if ino_t == dev_t == 0 is impossible */
|
||||||
|
|
||||||
std::string path;
|
std::string path;
|
||||||
|
|
Loading…
Reference in New Issue