X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=src%2Finspect.c;fp=src%2Finspect.c;h=46c7fe4e168877c826e8d673afd933dc62897d5b;hb=d72815578f7b8fea9702902d8562430e8a007a46;hp=8b21026830d9a6711cca6220369a040b52da23a5;hpb=8dafeaa477f9e3d2fde827b8de4b44d66b661b69;p=libguestfs.git diff --git a/src/inspect.c b/src/inspect.c index 8b21026..46c7fe4 100644 --- a/src/inspect.c +++ b/src/inspect.c @@ -609,8 +609,6 @@ check_linux_root (guestfs_h *g, struct inspect_fs *fs) static int check_freebsd_root (guestfs_h *g, struct inspect_fs *fs) { - int r; - fs->type = OS_TYPE_FREEBSD; /* FreeBSD has no authoritative version file. The version number is @@ -673,8 +671,6 @@ check_architecture (guestfs_h *g, struct inspect_fs *fs) static int check_hostname_unix (guestfs_h *g, struct inspect_fs *fs) { - char **lines; - switch (fs->type) { case OS_TYPE_LINUX: /* Red Hat-derived would be in /etc/sysconfig/network, and