diff mbox

[06/15] btrfs-print: define void function args

Message ID 1376522205-16992-7-git-send-email-zab@redhat.com (mailing list archive)
State Accepted, archived
Headers show

Commit Message

Zach Brown Aug. 14, 2013, 11:16 p.m. UTC
This silences (reasonable) sparse warnings of the form:

	warning: non-ANSI function declaration of ..

Signed-off-by: Zach Brown <zab@redhat.com>
---
 btrfs-find-root.c | 2 +-
 btrfs-list.c      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/btrfs-find-root.c b/btrfs-find-root.c
index 1a7a80c..b48c800 100644
--- a/btrfs-find-root.c
+++ b/btrfs-find-root.c
@@ -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");
diff --git a/btrfs-list.c b/btrfs-list.c
index 214cb45..55508d2 100644
--- a/btrfs-list.c
+++ b/btrfs-list.c
@@ -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;