diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/inspect_fs_unix.c | 4 | ||||
-rw-r--r-- | src/inspect_fs_windows.c | 2 | ||||
-rw-r--r-- | src/launch.c | 1 | ||||
-rw-r--r-- | src/virt.c | 1 |
4 files changed, 1 insertions, 7 deletions
diff --git a/src/inspect_fs_unix.c b/src/inspect_fs_unix.c index 5e58eb9c..fe44c3aa 100644 --- a/src/inspect_fs_unix.c +++ b/src/inspect_fs_unix.c @@ -64,11 +64,9 @@ static pcre *re_scientific_linux_old; static pcre *re_scientific_linux; static pcre *re_scientific_linux_no_minor; static pcre *re_major_minor; -static pcre *re_aug_seq; static pcre *re_xdev; static pcre *re_cciss; static pcre *re_mdN; -static pcre *re_first_partition; static pcre *re_freebsd; static pcre *re_netbsd; @@ -584,8 +582,6 @@ guestfs___check_netbsd_root (guestfs_h *g, struct inspect_fs *fs) int guestfs___check_hurd_root (guestfs_h *g, struct inspect_fs *fs) { - int r; - fs->type = OS_TYPE_HURD; if (guestfs_exists (g, "/etc/debian_version") > 0) { diff --git a/src/inspect_fs_windows.c b/src/inspect_fs_windows.c index ad47b2d3..11454dff 100644 --- a/src/inspect_fs_windows.c +++ b/src/inspect_fs_windows.c @@ -110,7 +110,7 @@ int guestfs___has_windows_systemroot (guestfs_h *g) { size_t i; - char *systemroot, *p; + char *systemroot; char path[256]; for (i = 0; i < sizeof systemroots / sizeof systemroots[0]; ++i) { diff --git a/src/launch.c b/src/launch.c index 1b496f69..1a7c8236 100644 --- a/src/launch.c +++ b/src/launch.c @@ -1263,7 +1263,6 @@ static int test_qemu (guestfs_h *g) { char cmd[1024]; - FILE *fp; free (g->qemu_help); g->qemu_help = NULL; @@ -363,7 +363,6 @@ static int guestfs___add_libvirt_dom (guestfs_h *g, virDomainPtr dom, const struct guestfs___add_libvirt_dom_argv *optargs) { - size_t cmdline_pos; int r; int readonly; const char *iface; |