nbd: Remove unused functions
Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
		
							parent
							
								
									f17c90bed1
								
							
						
					
					
						commit
						197a4859b9
					
				| 
						 | 
				
			
			@ -61,9 +61,7 @@ enum {
 | 
			
		|||
#define NBD_BUFFER_SIZE (1024*1024)
 | 
			
		||||
 | 
			
		||||
ssize_t nbd_wr_sync(int fd, void *buffer, size_t size, bool do_read);
 | 
			
		||||
int tcp_socket_outgoing(const char *address, uint16_t port);
 | 
			
		||||
int tcp_socket_incoming(const char *address, uint16_t port);
 | 
			
		||||
int tcp_socket_outgoing_spec(const char *address_and_port);
 | 
			
		||||
int tcp_socket_incoming_spec(const char *address_and_port);
 | 
			
		||||
int tcp_socket_outgoing_opts(QemuOpts *opts);
 | 
			
		||||
int unix_socket_outgoing(const char *path);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										19
									
								
								nbd.c
								
								
								
								
							
							
						
						
									
										19
									
								
								nbd.c
								
								
								
								
							| 
						 | 
				
			
			@ -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;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue