static int drive_add(const char *file, const char *fmt, ...)

{

    va_list ap;

    int index = drive_opt_get_free_idx();



    if (nb_drives_opt >= MAX_DRIVES || index == -1) {

        fprintf(stderr, "qemu: too many drives\n");

        exit(1);

    }



    drives_opt[index].file = file;

    va_start(ap, fmt);

    vsnprintf(drives_opt[index].opt,

              sizeof(drives_opt[0].opt), fmt, ap);

    va_end(ap);



    nb_drives_opt++;

    return index;

}

static int drive_add(const char *file, const char *fmt, ...)

{

    va_list ap;

    int index = drive_opt_get_free_idx();



    if (nb_drives_opt >= MAX_DRIVES || index == -1) {

        fprintf(stderr, "qemu: too many drives\n");

        exit(1);

    }



    drives_opt[index].file = file;

    va_start(ap, fmt);

    vsnprintf(drives_opt[index].opt,

              sizeof(drives_opt[0].opt), fmt, ap);

    va_end(ap);



    nb_drives_opt++;

    return index;

}

static int drive_add(const char *file, const char *fmt, ...)         exit(1);
static int FUNC_0(const char *VAR_0, const char *VAR_1, ...)

{

    va_list ap;

    int VAR_2 = drive_opt_get_free_idx();



    if (nb_drives_opt >= MAX_DRIVES || VAR_2 == -1) {

        fprintf(stderr, "qemu: too many drives\n");

        exit(1);

    }



    drives_opt[VAR_2].VAR_0 = VAR_0;

    va_start(ap, VAR_1);

    vsnprintf(drives_opt[VAR_2].opt,

              sizeof(drives_opt[0].opt), VAR_1, ap);

    va_end(ap);



    nb_drives_opt++;

    return VAR_2;

}

static int FUNC_0(const char *VAR_0, const char *VAR_1, ...)
{ va_list ap; int VAR_2 = drive_opt_get_free_idx(); if (nb_drives_opt >= MAX_DRIVES || VAR_2 == -1) { fprintf(stderr, "qemu: too many drives\n"); exit(1); } drives_opt[VAR_2].VAR_0 = VAR_0; va_start(ap, VAR_1); vsnprintf(drives_opt[VAR_2].opt,
sizeof(drives_opt[0].opt), VAR_1, ap); va_end(ap); nb_drives_opt++; return VAR_2; }