From 52c51752e8e8d64f4332cae990688b5b11f1b422 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 20 Jun 2013 13:49:45 +0200 Subject: lib: Remove unused "client_name" Signed-off-by: Volker Lendecke Reviewed-by: Andrew Bartlett --- lib/util/util_net.h | 1 - source3/include/proto.h | 1 - source3/lib/util_sock.c | 5 ----- 3 files changed, 7 deletions(-) diff --git a/lib/util/util_net.h b/lib/util/util_net.h index 215a6574d4..2f1beffb16 100644 --- a/lib/util/util_net.h +++ b/lib/util/util_net.h @@ -106,7 +106,6 @@ char *print_sockaddr(char *dest, const struct sockaddr_storage *psa); char *print_canonical_sockaddr(TALLOC_CTX *ctx, const struct sockaddr_storage *pss); -const char *client_name(int fd); int get_socket_port(int fd); const char *client_socket_addr(int fd, char *addr, size_t addr_len); diff --git a/source3/include/proto.h b/source3/include/proto.h index a9270fc903..4477246fbb 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -571,7 +571,6 @@ char *print_sockaddr(char *dest, const struct sockaddr_storage *psa); char *print_canonical_sockaddr(TALLOC_CTX *ctx, const struct sockaddr_storage *pss); -const char *client_name(int fd); 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); diff --git a/source3/lib/util_sock.c b/source3/lib/util_sock.c index 54286b3f31..509e7b7d3a 100644 --- a/source3/lib/util_sock.c +++ b/source3/lib/util_sock.c @@ -29,11 +29,6 @@ #include "../lib/util/tevent_ntstatus.h" #include "../lib/tsocket/tsocket.h" -const char *client_name(int fd) -{ - return get_peer_name(fd,false); -} - const char *client_addr(int fd, char *addr, size_t addrlen) { return get_peer_addr(fd,addr,addrlen); -- cgit