diff options
author | Eduardo Habkost <ehabkost@redhat.com> | 2016-05-12 11:09:59 -0300 |
---|---|---|
committer | Eduardo Habkost <ehabkost@redhat.com> | 2016-05-20 14:28:55 -0300 |
commit | 7b1ee0f2b732029c7826125f6b6eb6e1e2d4fd22 (patch) | |
tree | 9a19417f3da8c84e955f69356b60c85cfe73e905 /vl.c | |
parent | bacc344c548ce165a0001276ece56ee4b0bddae3 (diff) | |
download | qemu-7b1ee0f2b732029c7826125f6b6eb6e1e2d4fd22.zip qemu-7b1ee0f2b732029c7826125f6b6eb6e1e2d4fd22.tar.gz qemu-7b1ee0f2b732029c7826125f6b6eb6e1e2d4fd22.tar.bz2 |
vl: Use &error_fatal when parsing VNC options
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'vl.c')
-rw-r--r-- | vl.c | 15 |
1 files changed, 2 insertions, 13 deletions
@@ -2151,11 +2151,7 @@ static DisplayType select_display(const char *p) #endif } else if (strstart(p, "vnc", &opts)) { if (*opts == '=') { - Error *err = NULL; - if (vnc_parse(opts + 1, &err) == NULL) { - error_report_err(err); - exit(1); - } + vnc_parse(opts + 1, &error_fatal); } else { error_report("VNC requires a display argument vnc=<display>"); exit(1); @@ -3709,15 +3705,8 @@ int main(int argc, char **argv, char **envp) } break; case QEMU_OPTION_vnc: - { - Error *local_err = NULL; - - if (vnc_parse(optarg, &local_err) == NULL) { - error_report_err(local_err); - exit(1); - } + vnc_parse(optarg, &error_fatal); break; - } case QEMU_OPTION_no_acpi: acpi_enabled = 0; break; |