mirror of
git://sourceware.org/git/lvm2.git
synced 2025-08-25 13:49:28 +03:00
dmsetup: _find_command returns const
This commit is contained in:
@ -3149,8 +3149,8 @@ static int _dmsetup_help(CMD_ARGS)
|
||||
return 1;
|
||||
}
|
||||
|
||||
static struct command *_find_command(const struct command *commands,
|
||||
const char *name)
|
||||
static const struct command *_find_command(const struct command *commands,
|
||||
const char *name)
|
||||
{
|
||||
int i;
|
||||
|
||||
@ -3161,7 +3161,7 @@ static struct command *_find_command(const struct command *commands,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static struct command *_find_dmsetup_command(const char *name)
|
||||
static const struct command *_find_dmsetup_command(const char *name)
|
||||
{
|
||||
return _find_command(_dmsetup_commands, name);
|
||||
}
|
||||
|
Reference in New Issue
Block a user