diff options
author | Kevin Wolf <kwolf@redhat.com> | 2013-03-15 16:46:38 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2013-03-22 17:51:32 +0100 |
commit | 197a4859b914559489f41b63fd71ea4bfda17c3d (patch) | |
tree | 658dd3648c8932ed4cf8e2aa3d1af0c75ac8e054 /nbd.c | |
parent | f17c90bed11a6e277614b5a5d16434004f24d572 (diff) | |
download | qemu-197a4859b914559489f41b63fd71ea4bfda17c3d.tar.gz qemu-197a4859b914559489f41b63fd71ea4bfda17c3d.tar.bz2 qemu-197a4859b914559489f41b63fd71ea4bfda17c3d.zip |
nbd: Remove unused functions
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'nbd.c')
-rw-r--r-- | nbd.c | 19 |
1 files changed, 0 insertions, 19 deletions
@@ -199,25 +199,6 @@ static void combine_addr(char *buf, size_t len, const char* address, } } -int tcp_socket_outgoing(const char *address, uint16_t port) -{ - char address_and_port[128]; - combine_addr(address_and_port, 128, address, port); - return tcp_socket_outgoing_spec(address_and_port); -} - -int tcp_socket_outgoing_spec(const char *address_and_port) -{ - Error *local_err = NULL; - int fd = inet_connect(address_and_port, &local_err); - - if (local_err != NULL) { - qerror_report_err(local_err); - error_free(local_err); - } - return fd; -} - int tcp_socket_outgoing_opts(QemuOpts *opts) { Error *local_err = NULL; |