Fix a few casts for 32 bit compile

master
Chris Mason 2008-04-11 12:18:46 -04:00 committed by David Woodhouse
parent d1b04c2112
commit 9462e711a7
2 changed files with 2 additions and 3 deletions

View File

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

View File

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