* Removal time in the future? Not likely,
* but skip this item in any case.
*/
- if ((current_time) < glvl->glv->historical->timestamp_removed)
+ if (current_time < (time_t) glvl->glv->historical->timestamp_removed)
continue;
if ((current_time - glvl->glv->historical->timestamp_removed) > threshold) {
{
struct row *row;
struct dm_report_field *field;
- size_t len;
+ int len;
dm_list_iterate_items(row, &rh->rows) {
dm_list_iterate_items(field, &row->fields) {
struct dm_stats_region *region;
struct dm_histogram_bin *bins;
struct dm_histogram *dmh_cur;
- uint64_t bin;
+ int bin;
region = &dms->regions[region_id];
dmh_cur = region->counters[area_id].histogram;
static void _stats_copy_histogram_bounds(struct dm_histogram *to,
struct dm_histogram *from)
{
- uint64_t i;
+ int i;
to->nr_bins = from->nr_bins;
static int _stats_check_histogram_bounds(struct dm_histogram *h1,
struct dm_histogram *h2)
{
- uint64_t i;
+ int i;
if (!h1 || !h2)
return 0;
static void _check_pv_list(struct cmd_context *cmd, struct report_args *args, struct single_report_args *single_args)
{
- unsigned i;
+ int i;
int rescan_done = 0;
if (!args->argv)
int consistent = 0;
int must_use_all = (cmd->command->flags & MUST_USE_ALL_ARGS);
int found;
- int i;
+ unsigned i;
set_pv_notify(cmd);
struct vgextend_params *vp = (struct vgextend_params *) handle->custom_handle;
struct pvcreate_params *pp = &vp->pp;
int fixed = 0;
- int i;
+ unsigned i;
if (!archive(vg))
return_0;