diff --git a/WHATS_NEW b/WHATS_NEW index 209b5a555..0719f065a 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.87 - =============================== + Remove meaningless const type qualifiers on cast type. Fix memory leak in dmsetup _message() memory allocation error path. Add test for fcntl error in singlenode client code. Remove --force option from lvrename manpage. diff --git a/lib/misc/lvm-exec.c b/lib/misc/lvm-exec.c index 775b801f6..dfac1632b 100644 --- a/lib/misc/lvm-exec.c +++ b/lib/misc/lvm-exec.c @@ -75,7 +75,7 @@ int exec_cmd(struct cmd_context *cmd, const char *const argv[], /* FIXME Fix effect of reset_locking on cache then include this */ /* destroy_toolcontext(cmd); */ /* FIXME Use execve directly */ - execvp(argv[0], (char **const) argv); + execvp(argv[0], (char **) argv); log_sys_error("execvp", argv[0]); _exit(errno); } diff --git a/lib/report/report.c b/lib/report/report.c index cfc5073af..e572797a1 100644 --- a/lib/report/report.c +++ b/lib/report/report.c @@ -350,7 +350,7 @@ static int _size32_disp(struct dm_report *rh __attribute__((unused)), struct dm_ return 0; } - *sortval = (const uint64_t) size; + *sortval = (uint64_t) size; dm_report_field_set_value(field, repstr, sortval); diff --git a/libdm/libdm-report.c b/libdm/libdm-report.c index 021a21c83..3d34b7e3a 100644 --- a/libdm/libdm-report.c +++ b/libdm/libdm-report.c @@ -139,7 +139,7 @@ int dm_report_field_int(struct dm_report *rh, return 0; } - *sortval = (const uint64_t) value; + *sortval = (uint64_t) value; field->sort_value = sortval; field->report_string = repstr; @@ -168,7 +168,7 @@ int dm_report_field_uint32(struct dm_report *rh, return 0; } - *sortval = (const uint64_t) value; + *sortval = (uint64_t) value; field->sort_value = sortval; field->report_string = repstr; @@ -197,7 +197,7 @@ int dm_report_field_int32(struct dm_report *rh, return 0; } - *sortval = (const uint64_t) value; + *sortval = (uint64_t) value; field->sort_value = sortval; field->report_string = repstr;