1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +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:
Zdenek Kabelac 2010-12-20 13:28:04 +00:00
parent 303923fbf1
commit 66781f5d5a
2 changed files with 2 additions and 1 deletions

View File

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

View File

@ -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;
}