mirror of
https://github.com/kdave/btrfs-progs
synced 2024-12-26 16:12:34 +00:00
Fix a few casts for 32 bit compile
This commit is contained in:
parent
d1b04c2112
commit
9462e711a7
@ -132,9 +132,9 @@ static int check_leaf(struct btrfs_root *root,
|
||||
}
|
||||
if (i == 0 && btrfs_item_end_nr(buf, i) !=
|
||||
BTRFS_LEAF_DATA_SIZE(root)) {
|
||||
fprintf(stderr, "bad item end %u wanted %lu\n",
|
||||
fprintf(stderr, "bad item end %u wanted %u\n",
|
||||
btrfs_item_end_nr(buf, i),
|
||||
BTRFS_LEAF_DATA_SIZE(root));
|
||||
(unsigned)BTRFS_LEAF_DATA_SIZE(root));
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
@ -137,7 +137,6 @@ int main(int ac, char **av)
|
||||
fd = dirfd(dirstream);
|
||||
} else if (command == BTRFS_IOC_SCAN_DEV) {
|
||||
fd = open("/dev/btrfs-control", O_RDWR);
|
||||
printf("scanning %s command %lu\n", fname, BTRFS_IOC_SCAN_DEV);
|
||||
name = fname;
|
||||
} else {
|
||||
fd = open(fname, O_RDWR);
|
||||
|
Loading…
Reference in New Issue
Block a user