From 3d174b39bff6118bca3068c20ff874924cbfa1fd Mon Sep 17 00:00:00 2001 From: Richard Jones Date: Wed, 28 Mar 2012 19:02:58 +0100 Subject: Don't provoke -Wstrict-overflow warning from map_app_md_devices function. Unclear if this is a real bug or not. --- src/inspect_fs_unix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/inspect_fs_unix.c') diff --git a/src/inspect_fs_unix.c b/src/inspect_fs_unix.c index d9852032..c652ee50 100644 --- a/src/inspect_fs_unix.c +++ b/src/inspect_fs_unix.c @@ -971,7 +971,7 @@ static ssize_t map_app_md_devices (guestfs_h *g, Hash_table **map) { char **mds = NULL; - ssize_t n = 0; + size_t n = 0; /* A hash mapping uuids to md device names */ *map = hash_initialize(16, NULL, uuid_hash, uuid_cmp, md_uuid_free); @@ -1070,7 +1070,7 @@ map_md_devices(guestfs_h *g, Hash_table **map) { Hash_table *app_map = NULL; char **matches = NULL; - int n_app_md_devices; + ssize_t n_app_md_devices; *map = NULL; -- cgit