diff options
author | Chris Mason <chris.mason@oracle.com> | 2007-03-12 16:22:34 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@hera.kernel.org> | 2007-03-12 16:22:34 -0400 |
commit | b2e2afd7b4f10536f10771bd6ba2b0a98357d481 (patch) | |
tree | bcef398230660d8c3387220404bc9cd8431dc3f6 /quick-test.c | |
parent | ce3b109650062fe94c900f4b153835f2f3b600cc (diff) |
struct key endian fixes
Diffstat (limited to 'quick-test.c')
-rw-r--r-- | quick-test.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/quick-test.c b/quick-test.c index 07fd71b7..ab3bda53 100644 --- a/quick-test.c +++ b/quick-test.c @@ -13,8 +13,8 @@ int next_key(int i, int max_key) { } int main(int ac, char **av) { - struct key ins; - struct key last = { (u64)-1, 0, 0}; + struct btrfs_key ins; + struct btrfs_key last = { (u64)-1, 0, 0}; char *buf; int i; int num; @@ -146,7 +146,7 @@ int main(int ac, char **av) { slot = path.slots[0]; leaf = &path.nodes[0]->leaf; - memcpy(&last, &leaf->items[slot].key, sizeof(last)); + btrfs_disk_key_to_cpu(&last, &leaf->items[slot].key); if (tree_size % 10000 == 0) printf("big del %d:%d\n", tree_size, i); ret = del_item(root, &path); |