qemu-config.c (7fceeb190ac6fbbbec0bf904f743190708301e31) qemu-config.c (7dc847ebba953db90853d15f140c20eef74d4fb2)
1#include "qemu/osdep.h"
2#include "qapi/error.h"
3#include "qapi/qapi-commands-misc.h"
4#include "qapi/qmp/qdict.h"
5#include "qapi/qmp/qlist.h"
6#include "qemu-common.h"
7#include "qemu/error-report.h"
8#include "qemu/option.h"

--- 514 unchanged lines hidden (view full) ---

523 qdict_array_split(subqdict, &list);
524 if (qdict_size(subqdict)) {
525 error_setg(errp, "Unused option '%s' for [%s]",
526 qdict_first(subqdict)->key, opts->name);
527 goto out;
528 }
529
530 QLIST_FOREACH_ENTRY(list, list_entry) {
1#include "qemu/osdep.h"
2#include "qapi/error.h"
3#include "qapi/qapi-commands-misc.h"
4#include "qapi/qmp/qdict.h"
5#include "qapi/qmp/qlist.h"
6#include "qemu-common.h"
7#include "qemu/error-report.h"
8#include "qemu/option.h"

--- 514 unchanged lines hidden (view full) ---

523 qdict_array_split(subqdict, &list);
524 if (qdict_size(subqdict)) {
525 error_setg(errp, "Unused option '%s' for [%s]",
526 qdict_first(subqdict)->key, opts->name);
527 goto out;
528 }
529
530 QLIST_FOREACH_ENTRY(list, list_entry) {
531 QDict *section = qobject_to_qdict(qlist_entry_obj(list_entry));
531 QDict *section = qobject_to(QDict, qlist_entry_obj(list_entry));
532 char *opt_name;
533
534 if (!section) {
535 error_setg(errp, "[%s] section (index %u) does not consist of "
536 "keys", opts->name, i);
537 goto out;
538 }
539

--- 43 unchanged lines hidden ---
532 char *opt_name;
533
534 if (!section) {
535 error_setg(errp, "[%s] section (index %u) does not consist of "
536 "keys", opts->name, i);
537 goto out;
538 }
539

--- 43 unchanged lines hidden ---