diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-02-04 02:39:08 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-02-04 02:39:08 +0000 |
commit | 42823d597a9029ac497edda9102f61283630635b (patch) | |
tree | 848e71f864ad0675e19c8dcdce94c11a5dcc3d7a /include | |
parent | 45854b5e3ff265c23dc36c139f09ea8eb3790ad1 (diff) | |
download | busybox-w32-42823d597a9029ac497edda9102f61283630635b.tar.gz busybox-w32-42823d597a9029ac497edda9102f61283630635b.tar.bz2 busybox-w32-42823d597a9029ac497edda9102f61283630635b.zip |
add x to IPv6 functions which can die
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/libbb.h b/include/libbb.h index 44bd6e09d..dd23c704d 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -317,13 +317,13 @@ int xconnect_stream(const len_and_sockaddr *lsa); | |||
317 | * Currently will return IPv4 or IPv6 sockaddrs only | 317 | * Currently will return IPv4 or IPv6 sockaddrs only |
318 | * (depending on host), but in theory nothing prevents e.g. | 318 | * (depending on host), but in theory nothing prevents e.g. |
319 | * UNIX socket address being returned, IPX sockaddr etc... */ | 319 | * UNIX socket address being returned, IPX sockaddr etc... */ |
320 | len_and_sockaddr* host2sockaddr(const char *host, int port); | 320 | len_and_sockaddr* xhost2sockaddr(const char *host, int port); |
321 | #if ENABLE_FEATURE_IPV6 | 321 | #if ENABLE_FEATURE_IPV6 |
322 | /* Same, useful if you want to force family (e.g. IPv6) */ | 322 | /* Same, useful if you want to force family (e.g. IPv6) */ |
323 | len_and_sockaddr* host_and_af2sockaddr(const char *host, int port, sa_family_t af); | 323 | len_and_sockaddr* xhost_and_af2sockaddr(const char *host, int port, sa_family_t af); |
324 | #else | 324 | #else |
325 | /* [we evaluate af: think about "host_and_af2sockaddr(..., af++)"] */ | 325 | /* [we evaluate af: think about "xhost_and_af2sockaddr(..., af++)"] */ |
326 | #define host_and_af2sockaddr(host, port, af) ((void)(af), host2sockaddr((host), (port))) | 326 | #define xhost_and_af2sockaddr(host, port, af) ((void)(af), xhost2sockaddr((host), (port))) |
327 | #endif | 327 | #endif |
328 | /* Assign sin[6]_port member if the socket is of corresponding type, | 328 | /* Assign sin[6]_port member if the socket is of corresponding type, |
329 | * otherwise no-op. Useful for ftp. | 329 | * otherwise no-op. Useful for ftp. |