From dcda3ab8ca5447b04da7a95cc82965265687a8a5 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 12 Apr 2009 14:25:02 +0200 Subject: Reactivate get_socket_port --- source3/lib/util_sock.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'source3/lib') diff --git a/source3/lib/util_sock.c b/source3/lib/util_sock.c index 5f9d4768ba..cbd7b983c7 100644 --- a/source3/lib/util_sock.c +++ b/source3/lib/util_sock.c @@ -208,13 +208,11 @@ static const char *get_socket_addr(int fd, char *addr_buf, size_t addr_len) return print_sockaddr_len(addr_buf, addr_len, (struct sockaddr *)&sa, length); } -#if 0 -/* Not currently used. JRA. */ /**************************************************************************** Return the port number we've bound to on a socket. ****************************************************************************/ -static int get_socket_port(int fd) +int get_socket_port(int fd) { struct sockaddr_storage sa; socklen_t length = sizeof(sa); @@ -239,7 +237,6 @@ static int get_socket_port(int fd) } return -1; } -#endif const char *client_name(int fd) { -- cgit