(Revealed by compiling under Debian where this is a warning).
}
else if (mode == 'l') {
char *out;
- size_t i;
if ((out = guestfs_ll (g, dir)) == NULL)
errors++;
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;
print_title (void)
{
const char *cols[6];
- size_t i;
cols[0] = _("VirtualMachine");
cols[1] = _("Filesystem");
};
struct drv *drvs = NULL;
struct drv *drv;
- char *p, *file = NULL;
const char *format = NULL;
int c;
int option_index;
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
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
{
int r;
int wfd[2], rfd[2];
- int tries;
char unixsock[256];
struct sockaddr_un addr;