mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Remove meaningless const type qualifiers on cast type
Static analyzis noticed we do not really need them - so removing.
This commit is contained in:
parent
6fb5fbbabf
commit
586f310618
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.87 -
|
Version 2.02.87 -
|
||||||
===============================
|
===============================
|
||||||
|
Remove meaningless const type qualifiers on cast type.
|
||||||
Fix memory leak in dmsetup _message() memory allocation error path.
|
Fix memory leak in dmsetup _message() memory allocation error path.
|
||||||
Add test for fcntl error in singlenode client code.
|
Add test for fcntl error in singlenode client code.
|
||||||
Remove --force option from lvrename manpage.
|
Remove --force option from lvrename manpage.
|
||||||
|
@ -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 */
|
/* FIXME Fix effect of reset_locking on cache then include this */
|
||||||
/* destroy_toolcontext(cmd); */
|
/* destroy_toolcontext(cmd); */
|
||||||
/* FIXME Use execve directly */
|
/* FIXME Use execve directly */
|
||||||
execvp(argv[0], (char **const) argv);
|
execvp(argv[0], (char **) argv);
|
||||||
log_sys_error("execvp", argv[0]);
|
log_sys_error("execvp", argv[0]);
|
||||||
_exit(errno);
|
_exit(errno);
|
||||||
}
|
}
|
||||||
|
@ -350,7 +350,7 @@ static int _size32_disp(struct dm_report *rh __attribute__((unused)), struct dm_
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
*sortval = (const uint64_t) size;
|
*sortval = (uint64_t) size;
|
||||||
|
|
||||||
dm_report_field_set_value(field, repstr, sortval);
|
dm_report_field_set_value(field, repstr, sortval);
|
||||||
|
|
||||||
|
@ -139,7 +139,7 @@ int dm_report_field_int(struct dm_report *rh,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
*sortval = (const uint64_t) value;
|
*sortval = (uint64_t) value;
|
||||||
field->sort_value = sortval;
|
field->sort_value = sortval;
|
||||||
field->report_string = repstr;
|
field->report_string = repstr;
|
||||||
|
|
||||||
@ -168,7 +168,7 @@ int dm_report_field_uint32(struct dm_report *rh,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
*sortval = (const uint64_t) value;
|
*sortval = (uint64_t) value;
|
||||||
field->sort_value = sortval;
|
field->sort_value = sortval;
|
||||||
field->report_string = repstr;
|
field->report_string = repstr;
|
||||||
|
|
||||||
@ -197,7 +197,7 @@ int dm_report_field_int32(struct dm_report *rh,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
*sortval = (const uint64_t) value;
|
*sortval = (uint64_t) value;
|
||||||
field->sort_value = sortval;
|
field->sort_value = sortval;
|
||||||
field->report_string = repstr;
|
field->report_string = repstr;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user