mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-24 06:04:19 +03:00
Indent; _init -> _init_lvm
This commit is contained in:
parent
35cf1b3b5b
commit
9e8b0fca5b
14
tools/lvm.c
14
tools/lvm.c
@ -503,10 +503,9 @@ static int _process_command_line(struct cmd_context *cmd, int *argc,
|
||||
log_error("Option%s%c%s%s may not be repeated",
|
||||
a->short_arg ? " -" : "",
|
||||
a->short_arg ? : ' ',
|
||||
(a->short_arg && a->long_arg) ?
|
||||
"/" : "",
|
||||
a->long_arg ? : "");
|
||||
return 0;
|
||||
(a->short_arg && a->long_arg) ?
|
||||
"/" : "", a->long_arg ? : "");
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (!optarg) {
|
||||
@ -883,8 +882,7 @@ static int _init_backup(struct cmd_context *cmd, struct config_tree *cft)
|
||||
return 0;
|
||||
}
|
||||
|
||||
dir = find_config_str(cmd->cft->root, "backup/backup_dir",
|
||||
default_dir);
|
||||
dir = find_config_str(cmd->cft->root, "backup/backup_dir", default_dir);
|
||||
|
||||
if (!backup_init(dir)) {
|
||||
log_debug("backup_init failed.");
|
||||
@ -894,7 +892,7 @@ static int _init_backup(struct cmd_context *cmd, struct config_tree *cft)
|
||||
return 1;
|
||||
}
|
||||
|
||||
static struct cmd_context *_init(void)
|
||||
static struct cmd_context *_init_lvm(void)
|
||||
{
|
||||
struct cmd_context *cmd;
|
||||
|
||||
@ -1193,7 +1191,7 @@ int main(int argc, char **argv)
|
||||
int ret, alias = 0;
|
||||
struct cmd_context *cmd;
|
||||
|
||||
if (!(cmd = _init()))
|
||||
if (!(cmd = _init_lvm()))
|
||||
return -1;
|
||||
|
||||
cmd->argv = argv;
|
||||
|
Loading…
x
Reference in New Issue
Block a user