From 029409e5a9568e9032634847587e24bba66b252b Mon Sep 17 00:00:00 2001 From: Amos Kong Date: Fri, 11 May 2012 00:28:26 +0800 Subject: sockets: use error class to pass listen error Add a new argument in inet_listen()/inet_listen_opts() to pass back listen error. Change nbd, qemu-char, vnc to use new interface. Signed-off-by: Amos Kong Reviewed-by: Orit Wasserman Reviewed-by: Michael Roth Signed-off-by: Anthony Liguori --- nbd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nbd.c') diff --git a/nbd.c b/nbd.c index bebfc49..dc0adf9 100644 --- a/nbd.c +++ b/nbd.c @@ -176,7 +176,7 @@ int tcp_socket_incoming_spec(const char *address_and_port) { char *ostr = NULL; int olen = 0; - return inet_listen(address_and_port, ostr, olen, SOCK_STREAM, 0); + return inet_listen(address_and_port, ostr, olen, SOCK_STREAM, 0, NULL); } int unix_socket_incoming(const char *path) -- cgit v1.1