summaryrefslogtreecommitdiffstats
path: root/src/inspect_fs_unix.c
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-03-12 11:29:06 +0000
committerRichard W.M. Jones <rjones@redhat.com>2012-03-12 11:53:04 +0000
commit46d1280100b025de2a448331306e794d688748bd (patch)
treeb4f89775f633d0191fd7315f50240bbbe140c46c /src/inspect_fs_unix.c
parent4bcd0b3c1766e459426e7d4138619790d4dd77d8 (diff)
downloadlibguestfs-46d1280100b025de2a448331306e794d688748bd.tar.gz
libguestfs-46d1280100b025de2a448331306e794d688748bd.tar.xz
libguestfs-46d1280100b025de2a448331306e794d688748bd.zip
inspect: Move variable decl to top of function.
Diffstat (limited to 'src/inspect_fs_unix.c')
-rw-r--r--src/inspect_fs_unix.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/inspect_fs_unix.c b/src/inspect_fs_unix.c
index 09d47d6b..74f014c6 100644
--- a/src/inspect_fs_unix.c
+++ b/src/inspect_fs_unix.c
@@ -1066,10 +1066,12 @@ map_md_devices(guestfs_h *g, Hash_table **map)
{
Hash_table *app_map = NULL;
char **matches = NULL;
+ int n_app_md_devices;
+
*map = NULL;
/* Get a map of md device uuids to their device names in the appliance */
- int n_app_md_devices = map_app_md_devices(g, &app_map);
+ n_app_md_devices = map_app_md_devices (g, &app_map);
if (n_app_md_devices == -1) goto error;
/* Nothing to do if there are no md devices */