diff --git a/WHATS_NEW b/WHATS_NEW index a06565c03..f107e41f3 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -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) diff --git a/liblvm/lvm_base.c b/liblvm/lvm_base.c index f8e10046b..9e1a8ecd8 100644 --- a/liblvm/lvm_base.c +++ b/liblvm/lvm_base.c @@ -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; }