summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Booth <mbooth@redhat.com>2011-11-23 14:00:52 +0000
committerRichard W.M. Jones <rjones@redhat.com>2011-11-24 21:06:33 +0000
commit187583299cf2d4bad75dad24fffedbbf333fe190 (patch)
treef8c70e61e1d89375088a23d61575331a99ec3956
parent0bdb3e0ad3a9bd27d2f0c61788370a15af263aa9 (diff)
downloadlibguestfs-187583299cf2d4bad75dad24fffedbbf333fe190.tar.gz
libguestfs-187583299cf2d4bad75dad24fffedbbf333fe190.tar.xz
libguestfs-187583299cf2d4bad75dad24fffedbbf333fe190.zip
NFC: Declare and use variables on the same line in inspect.c
(cherry picked from commit c8cb3d27b62da20be6b2fa06f1ce6b63a722c32b)
-rw-r--r--src/inspect.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/inspect.c b/src/inspect.c
index 1b41be58..e49cb1f1 100644
--- a/src/inspect.c
+++ b/src/inspect.c
@@ -61,8 +61,7 @@ guestfs__inspect_os (guestfs_h *g)
* information to the handle.
*/
/* Look to see if any devices directly contain filesystems (RHBZ#590167). */
- char **devices;
- devices = guestfs_list_devices (g);
+ char **devices = guestfs_list_devices (g);
if (devices == NULL)
return NULL;
@@ -77,8 +76,7 @@ guestfs__inspect_os (guestfs_h *g)
guestfs___free_string_list (devices);
/* Look at all partitions. */
- char **partitions;
- partitions = guestfs_list_partitions (g);
+ char **partitions = guestfs_list_partitions (g);
if (partitions == NULL) {
guestfs___free_inspect_info (g);
return NULL;