From 99069330a104e6d360635174be5f5ed054c418b8 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sat, 27 Feb 2010 19:38:19 +0100 Subject: *: gethostname-related fixes function old new delta hostname_main 218 231 +13 nfsmount 3541 3474 -67 Signed-off-by: Denys Vlasenko --- libbb/xconnect.c | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'libbb/xconnect.c') diff --git a/libbb/xconnect.c b/libbb/xconnect.c index 8a1e1c1b2..97751eb27 100644 --- a/libbb/xconnect.c +++ b/libbb/xconnect.c @@ -96,28 +96,6 @@ unsigned FAST_FUNC bb_lookup_port(const char *port, const char *protocol, unsign } -/* "Old" networking API - only IPv4 */ - -/* -void FAST_FUNC bb_lookup_host(struct sockaddr_in *s_in, const char *host) -{ - struct hostent *he; - - memset(s_in, 0, sizeof(struct sockaddr_in)); - s_in->sin_family = AF_INET; - he = xgethostbyname(host); - memcpy(&(s_in->sin_addr), he->h_addr_list[0], he->h_length); -} - - -int FAST_FUNC xconnect_tcp_v4(struct sockaddr_in *s_addr) -{ - int s = xsocket(AF_INET, SOCK_STREAM, 0); - xconnect(s, (struct sockaddr*) s_addr, sizeof(*s_addr)); - return s; -} -*/ - /* "New" networking API */ -- cgit v1.2.3