btrfs-progs: cleanup, make usage strings static

Reported by sparse.

Signed-off-by: David Sterba <dsterba@suse.com>
master
David Sterba 2015-09-14 23:27:19 +02:00
parent f18085fd88
commit 8ede30c220
2 changed files with 4 additions and 4 deletions

View File

@ -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,

View File

@ -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.",
"",