diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2012-10-02 09:35:32 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2012-10-23 13:54:55 +0200 |
commit | 7fc4e63ec018a0ef6d420ddb7f6cbf68387d4995 (patch) | |
tree | f9c493c510f2a233ee1f89a9c068fa5fc56ef6c6 /qemu-char.c | |
parent | 680d16dcb79f999fad3a652c5190d6a5c6ea10dd (diff) | |
download | qemu-7fc4e63ec018a0ef6d420ddb7f6cbf68387d4995.zip qemu-7fc4e63ec018a0ef6d420ddb7f6cbf68387d4995.tar.gz qemu-7fc4e63ec018a0ef6d420ddb7f6cbf68387d4995.tar.bz2 |
qemu-sockets: add Error ** to all functions
This lets me adjust the clients to do proper error propagation first,
thus avoiding temporary regressions in the quality of the error messages.
Reviewed-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'qemu-char.c')
-rw-r--r-- | qemu-char.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/qemu-char.c b/qemu-char.c index b082bae..3cc6cb5 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -2102,7 +2102,7 @@ static CharDriverState *qemu_chr_open_udp(QemuOpts *opts) chr = g_malloc0(sizeof(CharDriverState)); s = g_malloc0(sizeof(NetCharDriver)); - fd = inet_dgram_opts(opts); + fd = inet_dgram_opts(opts, NULL); if (fd < 0) { fprintf(stderr, "inet_dgram_opts failed\n"); goto return_err; @@ -2448,9 +2448,9 @@ static CharDriverState *qemu_chr_open_socket(QemuOpts *opts) if (is_unix) { if (is_listen) { - fd = unix_listen_opts(opts); + fd = unix_listen_opts(opts, NULL); } else { - fd = unix_connect_opts(opts); + fd = unix_connect_opts(opts, NULL); } } else { if (is_listen) { |