From ad5e6d0cc2159ba2b57cbbea90bbbeb127c22314 Mon Sep 17 00:00:00 2001 From: Andrea Mazzoleni Date: Mon, 16 Dec 2013 16:21:00 +0100 Subject: [PATCH] Avoids warning about sign conversion. --- unix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unix.c b/unix.c index f6c646a1..fd3b123f 100644 --- a/unix.c +++ b/unix.c @@ -98,7 +98,7 @@ int devuuid(uint64_t device, char* uuid, size_t uuid_size) } /* if it matches, we have the uuid */ - if (S_ISBLK(st.st_mode) && st.st_rdev == device) { + if (S_ISBLK(st.st_mode) && st.st_rdev == (dev_t)device) { snprintf(uuid, uuid_size, "%s", dd->d_name); break; }