diff options
author | Max Kellermann <max@duempel.org> | 2014-02-21 10:48:43 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-02-21 10:48:43 +0100 |
commit | b7a795375716b832db60e95ecd2fb0aae75c1a0f (patch) | |
tree | f5dc09d44772e7fc9f3d72c63ecce3b427190606 /src | |
parent | d25ef7eea4aff44c2e3939ccb803ddb933135194 (diff) | |
download | mpd-b7a795375716b832db60e95ecd2fb0aae75c1a0f.tar.gz mpd-b7a795375716b832db60e95ecd2fb0aae75c1a0f.tar.xz mpd-b7a795375716b832db60e95ecd2fb0aae75c1a0f.zip |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/db/Directory.hxx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/db/Directory.hxx b/src/db/Directory.hxx index 705826a65..ebca95935 100644 --- a/src/db/Directory.hxx +++ b/src/db/Directory.hxx @@ -28,10 +28,8 @@ #include <string> -#include <sys/types.h> - -#define DEVICE_INARCHIVE (dev_t)(-1) -#define DEVICE_CONTAINER (dev_t)(-2) +static constexpr unsigned DEVICE_INARCHIVE = -1; +static constexpr unsigned DEVICE_CONTAINER = -2; #define directory_for_each_child(pos, directory) \ list_for_each_entry(pos, &(directory).children, siblings) @@ -81,8 +79,7 @@ struct Directory { Directory *parent; time_t mtime; - ino_t inode; - dev_t device; + unsigned inode, device; bool have_stat; /* not needed if ino_t == dev_t == 0 is impossible */ std::string path; |