summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Jones <rjones@redhat.com>2012-03-28 19:02:58 +0100
committerRichard W.M. Jones <rjones@redhat.com>2012-03-30 15:37:23 +0100
commit0b46fbb91a4239850d29ea48efef0cbb63358c1b (patch)
tree14c2e63f9a7a4924262a26e5eede122d695d7452
parentc255e7b40dceaed21a06178b3c36d4d2e9d5f9d0 (diff)
downloadlibguestfs-0b46fbb91a4239850d29ea48efef0cbb63358c1b.tar.gz
libguestfs-0b46fbb91a4239850d29ea48efef0cbb63358c1b.tar.xz
libguestfs-0b46fbb91a4239850d29ea48efef0cbb63358c1b.zip
Don't provoke -Wstrict-overflow warning from map_app_md_devices function.
Unclear if this is a real bug or not. (cherry picked from commit 3d174b39bff6118bca3068c20ff874924cbfa1fd)
-rw-r--r--src/inspect_fs_unix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/inspect_fs_unix.c b/src/inspect_fs_unix.c
index 43da6f5d..18072ee3 100644
--- a/src/inspect_fs_unix.c
+++ b/src/inspect_fs_unix.c
@@ -951,7 +951,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);
@@ -1050,7 +1050,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;