From: Volker Lendecke Date: Fri, 17 Jul 2020 10:52:15 +0000 (+0200) Subject: lib: Remove unused client_addr() X-Git-Tag: talloc-2.3.2~862 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de03dba413e5612f0411eb10c7ee3cb4dea1576e;p=thirdparty%2Fsamba.git lib: Remove unused client_addr() Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/include/proto.h b/source3/include/proto.h index a6427883576..0717e4c3f4f 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -520,7 +520,6 @@ char *print_sockaddr(char *dest, char *print_canonical_sockaddr(TALLOC_CTX *ctx, const struct sockaddr_storage *pss); int get_socket_port(int fd); -const char *client_addr(int fd, char *addr, size_t addrlen); const char *client_socket_addr(int fd, char *addr, size_t addr_len); int client_socket_port(int fd); bool is_a_socket(int fd); diff --git a/source3/lib/util_sock.c b/source3/lib/util_sock.c index 55e42f1d18e..55170e94f68 100644 --- a/source3/lib/util_sock.c +++ b/source3/lib/util_sock.c @@ -31,11 +31,6 @@ #include "lib/util/sys_rw.h" #include "lib/util/sys_rw_data.h" -const char *client_addr(int fd, char *addr, size_t addrlen) -{ - return get_peer_addr(fd,addr,addrlen); -} - #if 0 /* Not currently used. JRA. */ int client_socket_port(int fd)