diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-02-27 19:38:19 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-02-27 19:38:19 +0100 |
commit | 99069330a104e6d360635174be5f5ed054c418b8 (patch) | |
tree | f800b70a7b8989db14f5964b65534181d4a1a309 /libbb | |
parent | ca228fb16dddc3c959adad97a930612a6b5256db (diff) | |
download | busybox-w32-99069330a104e6d360635174be5f5ed054c418b8.tar.gz busybox-w32-99069330a104e6d360635174be5f5ed054c418b8.tar.bz2 busybox-w32-99069330a104e6d360635174be5f5ed054c418b8.zip |
*: gethostname-related fixes
function old new delta
hostname_main 218 231 +13
nfsmount 3541 3474 -67
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/xconnect.c | 22 |
1 files changed, 0 insertions, 22 deletions
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 | |||
96 | } | 96 | } |
97 | 97 | ||
98 | 98 | ||
99 | /* "Old" networking API - only IPv4 */ | ||
100 | |||
101 | /* | ||
102 | void FAST_FUNC bb_lookup_host(struct sockaddr_in *s_in, const char *host) | ||
103 | { | ||
104 | struct hostent *he; | ||
105 | |||
106 | memset(s_in, 0, sizeof(struct sockaddr_in)); | ||
107 | s_in->sin_family = AF_INET; | ||
108 | he = xgethostbyname(host); | ||
109 | memcpy(&(s_in->sin_addr), he->h_addr_list[0], he->h_length); | ||
110 | } | ||
111 | |||
112 | |||
113 | int FAST_FUNC xconnect_tcp_v4(struct sockaddr_in *s_addr) | ||
114 | { | ||
115 | int s = xsocket(AF_INET, SOCK_STREAM, 0); | ||
116 | xconnect(s, (struct sockaddr*) s_addr, sizeof(*s_addr)); | ||
117 | return s; | ||
118 | } | ||
119 | */ | ||
120 | |||
121 | /* "New" networking API */ | 99 | /* "New" networking API */ |
122 | 100 | ||
123 | 101 | ||