Remove several unused local variables.

(Revealed by compiling under Debian where this is a warning).
This commit is contained in:
Richard W.M. Jones
2010-12-10 12:19:49 +00:00
parent 8dafeaa477
commit d72815578f
6 changed files with 1 additions and 9 deletions

View File

@@ -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++;

View File

@@ -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;

View File

@@ -45,7 +45,6 @@ void
print_title (void)
{
const char *cols[6];
size_t i;
cols[0] = _("VirtualMachine");
cols[1] = _("Filesystem");

View File

@@ -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;

View File

@@ -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

View File

@@ -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;