diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2011-04-08 14:40:18 +0000 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2011-04-08 14:40:18 +0000 |
commit | a1eba521e3cd652a8e72e662866e593d6f949fc2 (patch) | |
tree | 6d005ee70436569d0f2e559ec180a02d9d414ddd /libdm/libdm-report.c | |
parent | 2c5827076b3dc43df52ef9f8150e00eb4d3de1f0 (diff) | |
download | lvm2-a1eba521e3cd652a8e72e662866e593d6f949fc2.tar.gz lvm2-a1eba521e3cd652a8e72e662866e593d6f949fc2.tar.xz lvm2-a1eba521e3cd652a8e72e662866e593d6f949fc2.zip |
Fix some unmatching sign comparation gcc warnings
Simple replacement for unsigned type - usually in for() loops.
Diffstat (limited to 'libdm/libdm-report.c')
-rw-r--r-- | libdm/libdm-report.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libdm/libdm-report.c b/libdm/libdm-report.c index 19f57362..dca69c84 100644 --- a/libdm/libdm-report.c +++ b/libdm/libdm-report.c @@ -734,8 +734,8 @@ int dm_report_object(struct dm_report *rh, void *object) return 0; } - if ((strlen(field->report_string) > field->props->width)) - field->props->width = strlen(field->report_string); + if (((int) strlen(field->report_string) > field->props->width)) + field->props->width = (int) strlen(field->report_string); if ((rh->flags & RH_SORT_REQUIRED) && (field->props->flags & FLD_SORT_KEY)) { @@ -775,8 +775,8 @@ static int _report_headings(struct dm_report *rh) } dm_list_iterate_items(fp, &rh->field_props) { - if (buf_size < fp->width) - buf_size = fp->width; + if ((int) buf_size < fp->width) + buf_size = (size_t) fp->width; } /* Including trailing '\0'! */ buf_size++; |