lib: Remove unused client_socket_port()
authorVolker Lendecke <vl@samba.org>
Fri, 17 Jul 2020 10:56:43 +0000 (12:56 +0200)
committerJeremy Allison <jra@samba.org>
Mon, 17 Aug 2020 19:35:37 +0000 (19:35 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/include/proto.h
source3/lib/util_sock.c

index 1027d4e091a3812463f908a39e78872420c9ad18..ff58bc7e52ec5c113e9dfea1efb099e30316dd2d 100644 (file)
@@ -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);
-int client_socket_port(int fd);
 bool is_a_socket(int fd);
 void set_socket_options(int fd, const char *options);
 NTSTATUS read_fd_with_timeout(int fd, char *buf,
index 55170e94f68faefd44d69df752a1857e6b837333..142946e9f5d935c715f9300cf352947f0416f22a 100644 (file)
 #include "lib/util/sys_rw.h"
 #include "lib/util/sys_rw_data.h"
 
-#if 0
-/* Not currently used. JRA. */
-int client_socket_port(int fd)
-{
-       return get_socket_port(fd);
-}
-#endif
-
 /****************************************************************************
  Determine if a file descriptor is in fact a socket.
 ****************************************************************************/