aboutsummaryrefslogtreecommitdiffstats
path: root/utils.h
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.cz>2015-06-08 23:30:21 +0200
committerDavid Sterba <dsterba@suse.cz>2015-06-09 13:32:32 +0200
commit54003d7ee6c71011ec41a5e4e557ec6c83a831de (patch)
tree460d37aec4b614740bd3c87a43f1786e992c561b /utils.h
parente99303c381b4041f8b5fce6f757242c5f1162c76 (diff)
downloadbtrfs-progs-54003d7ee6c71011ec41a5e4e557ec6c83a831de.tar.gz
btrfs-progs-54003d7ee6c71011ec41a5e4e557ec6c83a831de.tar.xz
btrfs-progs-54003d7ee6c71011ec41a5e4e557ec6c83a831de.zip
btrfs-progs: fix argv0_buf handling
The variable argv0_buf was duplicated and the changes done in utils.c were not propagated to help.c. So if an unknown commandline token was found, the error message did not contain the known part: $ btrfs scrub test : unknown token 'test' instead of $ btrfs scrub test btrfs scrub: uknown token 'test' Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'utils.h')
-rw-r--r--utils.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils.h b/utils.h
index 12923de..e771482 100644
--- a/utils.h
+++ b/utils.h
@@ -235,4 +235,6 @@ static inline u64 div_factor(u64 num, int factor)
int btrfs_tree_search2_ioctl_supported(int fd);
int btrfs_check_nodesize(u32 nodesize, u32 sectorsize);
+const char *get_argv0_buf(void);
+
#endif