btrfs-print: define void function args
authorZach Brown <zab@redhat.com>
Wed, 14 Aug 2013 23:16:36 +0000 (16:16 -0700)
committerDavid Sterba <dsterba@suse.cz>
Tue, 3 Sep 2013 17:41:04 +0000 (19:41 +0200)
This silences (reasonable) sparse warnings of the form:

warning: non-ANSI function declaration of ..

Signed-off-by: Zach Brown <zab@redhat.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
btrfs-find-root.c
btrfs-list.c

index 1a7a80c..b48c800 100644 (file)
@@ -40,7 +40,7 @@ static u64 search_objectid = BTRFS_ROOT_TREE_OBJECTID;
 static u64 search_generation = 0;
 static unsigned long search_level = 0;
 
-static void usage()
+static void usage(void)
 {
        fprintf(stderr, "Usage: find-roots [-o search_objectid] "
                "[ -g search_generation ] [ -l search_level ] <device>\n");
index 214cb45..55508d2 100644 (file)
@@ -1418,7 +1418,7 @@ static void print_single_volume_info_default(struct root_info *subv)
        printf("\n");
 }
 
-static void print_all_volume_info_tab_head()
+static void print_all_volume_info_tab_head(void)
 {
        int i;
        int len;