From a184abc70f7b1468e6036ab576f1587ee0574668 Mon Sep 17 00:00:00 2001 From: Gui Hecheng Date: Mon, 30 Jun 2014 11:54:11 +0800 Subject: btrfs-progs: move the check_argc_* functions into utils.c To let the independent tools(e.g. btrfs-image, btrfs-convert, etc.) share the convenience of check_argc_* functions, just move it into utils.c. Also add a new function "set_argv0" to set the correct tool name: *btrfs-image*: too few arguments The original btrfs* tools work as before. Signed-off-by: Gui Hecheng [moved argv0 and check_argc to utils.*] Signed-off-by: David Sterba --- help.c | 1 + 1 file changed, 1 insertion(+) (limited to 'help.c') diff --git a/help.c b/help.c index 09dc706..fab942b 100644 --- a/help.c +++ b/help.c @@ -19,6 +19,7 @@ #include #include "commands.h" +#include "utils.h" static char argv0_buf[ARGV0_BUF_SIZE]; -- cgit v1.2.1