From c985a2b104604cede8244cd3af6e50628435dae0 Mon Sep 17 00:00:00 2001 From: David Sterba Date: Mon, 14 Sep 2015 23:42:29 +0200 Subject: [PATCH] btrfs-progs: cleanup, update function definitions to be ANSI conformant Sparse reports: warning: non-ANSI function declaration of function and we're using func(void) elsewhere. Signed-off-by: David Sterba --- btrfs-calc-size.c | 2 +- qgroup.c | 2 +- utils.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/btrfs-calc-size.c b/btrfs-calc-size.c index 88f92e18..7287858a 100644 --- a/btrfs-calc-size.c +++ b/btrfs-calc-size.c @@ -421,7 +421,7 @@ out: return ret; } -static void usage() +static void usage(void) { fprintf(stderr, "Usage: calc-size [-v] [-b] \n"); } diff --git a/qgroup.c b/qgroup.c index 327abd64..ec9a3ac2 100644 --- 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 52791b53..679be3cd 100644 --- 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;