aboutsummaryrefslogtreecommitdiffstats
path: root/src/directory.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2010-12-21 19:53:17 +0100
committerMax Kellermann <max@duempel.org>2010-12-21 20:21:22 +0100
commit60b4f6b3eb789f7e96939b770bfc84cd5f569ca4 (patch)
treee671a89ee79b9d3645ac18316d8f4416efd62d07 /src/directory.h
parent546232b1c02d4e2c408eb9b0055068fc8204e977 (diff)
downloadmpd-60b4f6b3eb789f7e96939b770bfc84cd5f569ca4.tar.gz
mpd-60b4f6b3eb789f7e96939b770bfc84cd5f569ca4.tar.xz
mpd-60b4f6b3eb789f7e96939b770bfc84cd5f569ca4.zip
directory: fix warning "comparison between signed and unsigned"
Cast the constant to dev_t, not to unsigned.
Diffstat (limited to 'src/directory.h')
-rw-r--r--src/directory.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/directory.h b/src/directory.h
index 8207bd3a2..ac2310429 100644
--- a/src/directory.h
+++ b/src/directory.h
@@ -28,8 +28,8 @@
#define DIRECTORY_DIR "directory: "
-#define DEVICE_INARCHIVE (unsigned)(-1)
-#define DEVICE_CONTAINER (unsigned)(-2)
+#define DEVICE_INARCHIVE (dev_t)(-1)
+#define DEVICE_CONTAINER (dev_t)(-2)
struct directory {
struct dirvec children;