Forward value of sector_size instead of its address in blkdev_get_physector_size

This commit is contained in:
Nicolas Melot 2021-08-01 19:20:58 +02:00
parent e5041e76f8
commit b5456d1676

View file

@ -226,8 +226,10 @@ int blkdev_get_sector_size(int fd __attribute__((__unused__)), int *sector_size)
#ifdef BLKPBSZGET
int blkdev_get_physector_size(int fd, int *sector_size)
{
if (ioctl(fd, BLKPBSZGET, &sector_size) >= 0)
if (ioctl(fd, BLKPBSZGET, sector_size) >= 0)
{
return 0;
}
return -1;
}
#else