summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Jones <rjones@redhat.com>2012-03-28 19:02:58 +0100
committerRichard Jones <rjones@redhat.com>2012-03-28 19:03:30 +0100
commit3d174b39bff6118bca3068c20ff874924cbfa1fd (patch)
treecf3bb601b9948d251040abd5b20d416d912b9eac
parentf2fae5151f33e933f4d574dc4324b7a8a2ee393c (diff)
downloadlibguestfs-3d174b39bff6118bca3068c20ff874924cbfa1fd.tar.gz
libguestfs-3d174b39bff6118bca3068c20ff874924cbfa1fd.tar.xz
libguestfs-3d174b39bff6118bca3068c20ff874924cbfa1fd.zip
Don't provoke -Wstrict-overflow warning from map_app_md_devices function.
Unclear if this is a real bug or not.
-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 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;