aboutsummaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorCao jin <caoj.fnst@cn.fujitsu.com>2016-07-21 18:33:33 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2016-08-02 12:03:58 +0200
commitf8ea7a8656a807a8a3e4e2389059679716a75baa (patch)
tree92ca0451e7e578b0ea7bc6cdaa26167f6a571150 /util
parent00432b69538559285ca55677c1002cad556aea50 (diff)
util: drop unix_nonblocking_connect()
It is never used; all nonblocking connect now goes through socket_connect(), which calls unix_connect_addr(). Cc: Daniel P. Berrange <berrange@redhat.com> Cc: Gerd Hoffmann <kraxel@redhat.com> Cc: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Cao jin <caoj.fnst@cn.fujitsu.com> Message-Id: <1469097213-26441-3-git-send-email-caoj.fnst@cn.fujitsu.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'util')
-rw-r--r--util/qemu-sockets.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/util/qemu-sockets.c b/util/qemu-sockets.c
index 2e0570b2b7..58f9a2cce0 100644
--- a/util/qemu-sockets.c
+++ b/util/qemu-sockets.c
@@ -863,22 +863,6 @@ int unix_connect(const char *path, Error **errp)
}
-int unix_nonblocking_connect(const char *path,
- NonBlockingConnectHandler *callback,
- void *opaque, Error **errp)
-{
- UnixSocketAddress *saddr;
- int sock = -1;
-
- g_assert(callback != NULL);
-
- saddr = g_new0(UnixSocketAddress, 1);
- saddr->path = g_strdup(path);
- sock = unix_connect_saddr(saddr, errp, callback, opaque);
- qapi_free_UnixSocketAddress(saddr);
- return sock;
-}
-
SocketAddress *socket_parse(const char *str, Error **errp)
{
SocketAddress *addr;