From c06b72781dc6dff3f1e8209b7280ff4650eb6f36 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Mon, 17 Feb 2014 14:43:50 +0100 Subject: nbd: inline tcp_socket_incoming_spec into sole caller Signed-off-by: Paolo Bonzini Reviewed-by: Fam Zheng Signed-off-by: Kevin Wolf --- nbd.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'nbd.c') diff --git a/nbd.c b/nbd.c index 17ca95bf0d..2fc1f1fbf8 100644 --- a/nbd.c +++ b/nbd.c @@ -202,13 +202,9 @@ static void combine_addr(char *buf, size_t len, const char* address, int tcp_socket_incoming(const char *address, uint16_t port) { char address_and_port[128]; - combine_addr(address_and_port, 128, address, port); - return tcp_socket_incoming_spec(address_and_port); -} - -int tcp_socket_incoming_spec(const char *address_and_port) -{ Error *local_err = NULL; + + combine_addr(address_and_port, 128, address, port); int fd = inet_listen(address_and_port, NULL, 0, SOCK_STREAM, 0, &local_err); if (local_err != NULL) { -- cgit v1.2.1