summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2015-09-14 23:27:19 +0200
committerDavid Sterba <dsterba@suse.com>2015-09-14 23:45:32 +0200
commit8ede30c220544034d2732b84d3438aa25bac4c11 (patch)
treeb769405a5d2fd6c7ff5f9cb784cb8ce6b35c60c9
parentf18085fd88f05ae8b608c5bd307007e6623696aa (diff)
btrfs-progs: cleanup, make usage strings static
Reported by sparse. Signed-off-by: David Sterba <dsterba@suse.com>
-rw-r--r--cmds-device.c2
-rw-r--r--cmds-rescue.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/cmds-device.c b/cmds-device.c
index 84a08ad7..195ae2d6 100644
--- a/cmds-device.c
+++ b/cmds-device.c
@@ -471,7 +471,7 @@ out:
return err;
}
-const char * const cmd_device_usage_usage[] = {
+static const char * const cmd_device_usage_usage[] = {
"btrfs device usage [options] <path> [<path>..]",
"Show detailed information about internal allocations in devices.",
HELPINFO_OUTPUT_UNIT_DF,
diff --git a/cmds-rescue.c b/cmds-rescue.c
index dd7c01ea..bcec3447 100644
--- a/cmds-rescue.c
+++ b/cmds-rescue.c
@@ -33,7 +33,7 @@ static const char * const rescue_cmd_group_usage[] = {
int btrfs_recover_chunk_tree(char *path, int verbose, int yes);
int btrfs_recover_superblocks(char *path, int verbose, int yes);
-const char * const cmd_rescue_chunk_recover_usage[] = {
+static const char * const cmd_rescue_chunk_recover_usage[] = {
"btrfs rescue chunk-recover [options] <device>",
"Recover the chunk tree by scanning the devices one by one.",
"",
@@ -43,7 +43,7 @@ const char * const cmd_rescue_chunk_recover_usage[] = {
NULL
};
-const char * const cmd_rescue_super_recover_usage[] = {
+static const char * const cmd_rescue_super_recover_usage[] = {
"btrfs rescue super-recover [options] <device>",
"Recover bad superblocks from good copies",
"",
@@ -152,7 +152,7 @@ int cmd_rescue_super_recover(int argc, char **argv)
return ret;
}
-const char * const cmd_rescue_zero_log_usage[] = {
+static const char * const cmd_rescue_zero_log_usage[] = {
"btrfs rescue zero-log <device>",
"Clear the tree log. Usable if it's corrupted and prevents mount.",
"",