aboutsummaryrefslogtreecommitdiff
path: root/nbd.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2012-10-02 09:35:32 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2012-10-23 13:54:55 +0200
commit7fc4e63ec018a0ef6d420ddb7f6cbf68387d4995 (patch)
treef9c493c510f2a233ee1f89a9c068fa5fc56ef6c6 /nbd.c
parent680d16dcb79f999fad3a652c5190d6a5c6ea10dd (diff)
downloadqemu-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 'nbd.c')
-rw-r--r--nbd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nbd.c b/nbd.c
index 6f0db62..f61a288 100644
--- a/nbd.c
+++ b/nbd.c
@@ -230,12 +230,12 @@ int unix_socket_incoming(const char *path)
char *ostr = NULL;
int olen = 0;
- return unix_listen(path, ostr, olen);
+ return unix_listen(path, ostr, olen, NULL);
}
int unix_socket_outgoing(const char *path)
{
- return unix_connect(path);
+ return unix_connect(path, NULL);
}
/* Basic flow for negotiation