diff options
-rw-r--r-- | format/format.c | 2 | ||||
-rw-r--r-- | src/inspect_fs_unix.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/format/format.c b/format/format.c index 13fe0ca8..06428e88 100644 --- a/format/format.c +++ b/format/format.c @@ -435,7 +435,7 @@ static int do_rescan (char **devices) { size_t i; - int errors = 0; + size_t errors = 0; guestfs_error_handler_cb old_error_cb; void *old_error_data; diff --git a/src/inspect_fs_unix.c b/src/inspect_fs_unix.c index 1a6d0fb6..89b02c0d 100644 --- a/src/inspect_fs_unix.c +++ b/src/inspect_fs_unix.c @@ -170,7 +170,7 @@ static size_t mdadm_app_hash(const void *x, size_t table_size); static bool mdadm_app_cmp(const void *x, const void *y); static void mdadm_app_free(void *x); -static int map_app_md_devices (guestfs_h *g, Hash_table **map); +static ssize_t map_app_md_devices (guestfs_h *g, Hash_table **map); static int map_md_devices(guestfs_h *g, Hash_table **map); /* Set fs->product_name to the first line of the release file. */ @@ -943,11 +943,11 @@ parse_uuid(const char *str, uint32_t *uuid) } /* Create a mapping of uuids to appliance md device names */ -static int +static ssize_t map_app_md_devices (guestfs_h *g, Hash_table **map) { char **mds = NULL; - int n = 0; + ssize_t n = 0; /* A hash mapping uuids to md device names */ *map = hash_initialize(16, NULL, uuid_hash, uuid_cmp, md_uuid_free); |