From b2e2afd7b4f10536f10771bd6ba2b0a98357d481 Mon Sep 17 00:00:00 2001 From: Chris Mason Date: Mon, 12 Mar 2007 16:22:34 -0400 Subject: struct key endian fixes --- quick-test.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'quick-test.c') 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); -- cgit v1.2.3