mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-22 17:35:59 +03:00
Fix wrong cast to char*
As cmd->cmd_line is already const char pointer it's not needed to cast already const char pointer to char pointer.
This commit is contained in:
parent
8f606cf0f6
commit
97d680c924
@ -1,5 +1,6 @@
|
||||
Version 2.02.79 -
|
||||
===================================
|
||||
Fixing const cast gcc warnings in the code.
|
||||
Check read() and close() results in _get_cmdline().
|
||||
Add const for struct config_node usage.
|
||||
Fix NULL pointer check in error path in clvmd do_command(). (2.02.78)
|
||||
|
@ -61,7 +61,7 @@ lvm_t lvm_init(const char *system_dir)
|
||||
* archive() call. Possible example:
|
||||
* cmd_line = "lvm_vg_create: vg1\nlvm_vg_extend vg1 /dev/sda1\n"
|
||||
*/
|
||||
cmd->cmd_line = (char *)"liblvm";
|
||||
cmd->cmd_line = "liblvm";
|
||||
|
||||
return (lvm_t) cmd;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user