directory: fix warning "comparison between signed and unsigned"

Cast the constant to dev_t, not to unsigned.
This commit is contained in:
Max Kellermann 2010-12-21 19:53:17 +01:00
parent 546232b1c0
commit 60b4f6b3eb

View File

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