mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 02:49:02 -04:00
Avoids warning about sign conversion.
This commit is contained in:
parent
b6e4c08a69
commit
ad5e6d0cc2
1 changed files with 1 additions and 1 deletions
2
unix.c
2
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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue