mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
Remove several unused local variables.
(Revealed by compiling under Debian where this is a warning).
This commit is contained in:
@@ -270,7 +270,6 @@ main (int argc, char *argv[])
|
||||
}
|
||||
else if (mode == 'l') {
|
||||
char *out;
|
||||
size_t i;
|
||||
|
||||
if ((out = guestfs_ll (g, dir)) == NULL)
|
||||
errors++;
|
||||
|
||||
@@ -36,7 +36,7 @@ int
|
||||
do_mkfs_opts (const char *fstype, const char *device, int blocksize)
|
||||
{
|
||||
const char *argv[MAX_ARGS];
|
||||
size_t i = 0, j;
|
||||
size_t i = 0;
|
||||
char blocksize_str[32];
|
||||
int r;
|
||||
char *err;
|
||||
|
||||
@@ -45,7 +45,6 @@ void
|
||||
print_title (void)
|
||||
{
|
||||
const char *cols[6];
|
||||
size_t i;
|
||||
|
||||
cols[0] = _("VirtualMachine");
|
||||
cols[1] = _("Filesystem");
|
||||
|
||||
@@ -112,7 +112,6 @@ main (int argc, char *argv[])
|
||||
};
|
||||
struct drv *drvs = NULL;
|
||||
struct drv *drv;
|
||||
char *p, *file = NULL;
|
||||
const char *format = NULL;
|
||||
int c;
|
||||
int option_index;
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -352,7 +352,6 @@ guestfs__launch (guestfs_h *g)
|
||||
{
|
||||
int r;
|
||||
int wfd[2], rfd[2];
|
||||
int tries;
|
||||
char unixsock[256];
|
||||
struct sockaddr_un addr;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user