int qemu_check_nic_model_list(NICInfo *nd, const char * const *models,

                              const char *default_model)

{

    int i, exit_status = 0;



    if (!nd->model)

        nd->model = strdup(default_model);



    if (strcmp(nd->model, "?") != 0) {

        for (i = 0 ; models[i]; i++)

            if (strcmp(nd->model, models[i]) == 0)

                return i;



        fprintf(stderr, "qemu: Unsupported NIC model: %s\n", nd->model);

        exit_status = 1;

    }



    fprintf(stderr, "qemu: Supported NIC models: ");

    for (i = 0 ; models[i]; i++)

        fprintf(stderr, "%s%c", models[i], models[i+1] ? ',' : '\n');



    exit(exit_status);

}

int qemu_check_nic_model_list(NICInfo *nd, const char * const *models,

                              const char *default_model)

{

    int i, exit_status = 0;



    if (!nd->model)

        nd->model = strdup(default_model);



    if (strcmp(nd->model, "?") != 0) {

        for (i = 0 ; models[i]; i++)

            if (strcmp(nd->model, models[i]) == 0)

                return i;



        fprintf(stderr, "qemu: Unsupported NIC model: %s\n", nd->model);

        exit_status = 1;

    }



    fprintf(stderr, "qemu: Supported NIC models: ");

    for (i = 0 ; models[i]; i++)

        fprintf(stderr, "%s%c", models[i], models[i+1] ? ',' : '\n');



    exit(exit_status);

}

int qemu_check_nic_model_list(NICInfo *nd, const char * const *models,                               const char *default_model)     int i, exit_status = 0;     if (strcmp(nd->model, "?") != 0) {         for (i = 0 ; models[i]; i++)             if (strcmp(nd->model, models[i]) == 0)                 return i;         fprintf(stderr, "qemu: Unsupported NIC model: %s\n", nd->model);         exit_status = 1;     fprintf(stderr, "qemu: Supported NIC models: ");     for (i = 0 ; models[i]; i++)         fprintf(stderr, "%s%c", models[i], models[i+1] ? ',' : '\n');     exit(exit_status); int qemu_check_nic_model_list(NICInfo *nd, const char * const *models,
int FUNC_0(NICInfo *VAR_0, const char * const *VAR_1,

                              const char *VAR_2)

{

    int VAR_3, VAR_4 = 0;



    if (!VAR_0->model)

        VAR_0->model = strdup(VAR_2);



    if (strcmp(VAR_0->model, "?") != 0) {

        for (VAR_3 = 0 ; VAR_1[VAR_3]; VAR_3++)

            if (strcmp(VAR_0->model, VAR_1[VAR_3]) == 0)

                return VAR_3;



        fprintf(stderr, "qemu: Unsupported NIC model: %s\n", VAR_0->model);

        VAR_4 = 1;

    }



    fprintf(stderr, "qemu: Supported NIC VAR_1: ");

    for (VAR_3 = 0 ; VAR_1[VAR_3]; VAR_3++)

        fprintf(stderr, "%s%c", VAR_1[VAR_3], VAR_1[VAR_3+1] ? ',' : '\n');



    exit(VAR_4);

}

int FUNC_0(NICInfo *VAR_0, const char * const *VAR_1,
const char *VAR_2)
{ int VAR_3, VAR_4 = 0; if (!VAR_0->model)
VAR_0->model = strdup(VAR_2); if (strcmp(VAR_0->model, "?") != 0) { for (VAR_3 = 0 ; VAR_1[VAR_3]; VAR_3++) if (strcmp(VAR_0->model, VAR_1[VAR_3]) == 0)
return VAR_3; fprintf(stderr, "qemu: Unsupported NIC model: %s\n", VAR_0->model); VAR_4 = 1; } fprintf(stderr, "qemu: Supported NIC VAR_1: "); for (VAR_3 = 0 ; VAR_1[VAR_3]; VAR_3++) fprintf(stderr, "%s%c", VAR_1[VAR_3], VAR_1[VAR_3+1] ? ',' : '\n'); exit(VAR_4); }