btrfs-progs: cleanup, update function definitions to be ANSI conformant
authorDavid Sterba <dsterba@suse.com>
Mon, 14 Sep 2015 21:42:29 +0000 (23:42 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 14 Sep 2015 21:46:19 +0000 (23:46 +0200)
Sparse reports:

 warning: non-ANSI function declaration of function

and we're using func(void) elsewhere.

Signed-off-by: David Sterba <dsterba@suse.com>
btrfs-calc-size.c
qgroup.c
utils.c

index 88f92e1..7287858 100644 (file)
@@ -421,7 +421,7 @@ out:
        return ret;
 }
 
-static void usage()
+static void usage(void)
 {
        fprintf(stderr, "Usage: calc-size [-v] [-b] <device>\n");
 }
index 327abd6..ec9a3ac 100644 (file)
--- a/qgroup.c
+++ b/qgroup.c
@@ -272,7 +272,7 @@ static void print_single_qgroup_table(struct btrfs_qgroup *qgroup)
        printf("\n");
 }
 
-static void print_table_head()
+static void print_table_head(void)
 {
        int i;
        int len;
diff --git a/utils.c b/utils.c
index 52791b5..679be3c 100644 (file)
--- a/utils.c
+++ b/utils.c
@@ -2550,7 +2550,7 @@ int test_dev_for_mkfs(char *file, int force_overwrite)
        return 0;
 }
 
-int btrfs_scan_lblkid()
+int btrfs_scan_lblkid(void)
 {
        int fd = -1;
        int ret;