summaryrefslogtreecommitdiffstats
path: root/libdm/libdm-report.c
diff options
context:
space:
mode:
authorAlasdair Kergon <agk@redhat.com>2007-01-16 21:13:07 +0000
committerAlasdair Kergon <agk@redhat.com>2007-01-16 21:13:07 +0000
commitf6af1a67b5c9dfd3943617bdb1e77d1594ff46b4 (patch)
tree847ab0e11c5a75843e05b4d0e001dcd7b0cfc679 /libdm/libdm-report.c
parent74885e220399b245d9c8abaaaa72597a83c1ab75 (diff)
downloadlvm2-f6af1a67b5c9dfd3943617bdb1e77d1594ff46b4.tar.gz
lvm2-f6af1a67b5c9dfd3943617bdb1e77d1594ff46b4.tar.xz
lvm2-f6af1a67b5c9dfd3943617bdb1e77d1594ff46b4.zip
more little fixes
Diffstat (limited to 'libdm/libdm-report.c')
-rw-r--r--libdm/libdm-report.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libdm/libdm-report.c b/libdm/libdm-report.c
index de93dc25..bd9f7648 100644
--- a/libdm/libdm-report.c
+++ b/libdm/libdm-report.c
@@ -60,7 +60,7 @@ struct field_properties {
struct list list;
uint32_t field_num;
uint32_t sort_posn;
- int width;
+ unsigned width;
const struct dm_report_object_type *type;
uint32_t flags;
};
@@ -667,7 +667,7 @@ static int _row_compare(const void *a, const void *b)
const struct row *rowa = *(const struct row **) a;
const struct row *rowb = *(const struct row **) b;
const struct dm_report_field *sfa, *sfb;
- int32_t cnt = -1;
+ uint32_t cnt;
for (cnt = 0; cnt < rowa->rh->keys_count; cnt++) {
sfa = (*rowa->sort_fields)[cnt];
@@ -739,7 +739,7 @@ int dm_report_output(struct dm_report *rh)
struct dm_report_field *field;
const char *repstr;
char buf[4096];
- int width;
+ unsigned width;
if (list_empty(&rh->rows))
return 1;