summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2016-11-02 10:19:16 +0100
committerDavid Sterba <dsterba@suse.com>2016-11-09 13:47:30 +0100
commit5082ec84a86cbb8a6f8e5140c11f1200c26cc05a (patch)
tree3af171cd2458b61cc8d2ce38fc072de495eeb37e
parente9c1121495cede0f086ace9828210696eb85418f (diff)
btrfs-progs: dump-tree: return void from print_* functions
Signed-off-by: David Sterba <dsterba@suse.com>
-rw-r--r--print-tree.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/print-tree.c b/print-tree.c
index f92dfe26..0f55607e 100644
--- a/print-tree.c
+++ b/print-tree.c
@@ -62,7 +62,7 @@ static void print_dir_item_type(struct extent_buffer *eb,
}
}
-static int print_dir_item(struct extent_buffer *eb, u32 size,
+static void print_dir_item(struct extent_buffer *eb, u32 size,
struct btrfs_dir_item *di)
{
u32 cur = 0;
@@ -97,10 +97,9 @@ static int print_dir_item(struct extent_buffer *eb, u32 size,
di = (struct btrfs_dir_item *)((char *)di + len);
cur += len;
}
- return 0;
}
-static int print_inode_extref_item(struct extent_buffer *eb, u32 size,
+static void print_inode_extref_item(struct extent_buffer *eb, u32 size,
struct btrfs_inode_extref *extref)
{
u32 cur = 0;
@@ -129,10 +128,9 @@ static int print_inode_extref_item(struct extent_buffer *eb, u32 size,
extref = (struct btrfs_inode_extref *)((char *)extref + len);
cur += len;
}
- return 0;
}
-static int print_inode_ref_item(struct extent_buffer *eb, u32 size,
+static void print_inode_ref_item(struct extent_buffer *eb, u32 size,
struct btrfs_inode_ref *ref)
{
u32 cur = 0;
@@ -152,7 +150,6 @@ static int print_inode_ref_item(struct extent_buffer *eb, u32 size,
ref = (struct btrfs_inode_ref *)((char *)ref + len);
cur += len;
}
- return 0;
}
/* Caller should ensure sizeof(*ret)>=21 "DATA|METADATA|RAID10" */