mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 02:24:58 -06:00
QemuOpts: Convert qemu_opts_foreach() to Error
Retain the function value for now, to permit selective conversion of its callers. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Acked-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
a4c7367f7d
commit
28d0de7a4f
12 changed files with 72 additions and 54 deletions
2
ui/vnc.c
2
ui/vnc.c
|
@ -3770,7 +3770,7 @@ QemuOpts *vnc_parse_func(const char *str)
|
|||
return opts;
|
||||
}
|
||||
|
||||
int vnc_init_func(QemuOpts *opts, void *opaque)
|
||||
int vnc_init_func(void *opaque, QemuOpts *opts, Error **errp)
|
||||
{
|
||||
Error *local_err = NULL;
|
||||
char *id = (char *)qemu_opts_id(opts);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue