diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-10-26 05:09:46 +0400 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-10-26 05:09:46 +0400 |
commit | 1457915afcb8fb0697f441dce1697b278d25f4a5 (patch) | |
tree | 4f61a7fd5a6a3ebbca053c55dc68b8a3edb7700b /include | |
parent | 940b2e4b734e92cd6dd10c33910439478812d106 (diff) |
xconnect is non-conforming to "xfunc like libc" rule. Fixing
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/libbb.h b/include/libbb.h index 7b8327ff5..a2267f942 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -452,7 +452,9 @@ extern struct hostent *xgethostbyname(const char *name); extern struct hostent *xgethostbyname2(const char *name, int af); extern int create_icmp_socket(void); extern int create_icmp6_socket(void); -extern int xconnect(struct sockaddr_in *s_addr); +extern void xconnect(int s, const struct sockaddr *s_addr, socklen_t addrlen); +extern int xconnect_tcp_v4(struct sockaddr_in *s_addr); + extern unsigned short bb_lookup_port(const char *port, const char *protocol, unsigned short default_port); extern void bb_lookup_host(struct sockaddr_in *s_in, const char *host); |