summaryrefslogtreecommitdiff
path: root/network_io
diff options
context:
space:
mode:
authortrawick <trawick@13f79535-47bb-0310-9956-ffa450edef68>2003-12-03 12:36:42 +0000
committertrawick <trawick@13f79535-47bb-0310-9956-ffa450edef68>2003-12-03 12:36:42 +0000
commitcde3537699c83fe38290c40e71813d289a96f6f5 (patch)
treea00e0d014211aa6586c8a731678b0a6225e2029b /network_io
parentdd795f939656519b9722eeb55f81643242e283e9 (diff)
downloadlibapr-cde3537699c83fe38290c40e71813d289a96f6f5.tar.gz
remove apr_sockaddr_ip_set() API
remove comment in apr_socket_connect() documentation mentioning that the sockaddr parameter can be NULL git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64806 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'network_io')
-rw-r--r--network_io/unix/sockaddr.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/network_io/unix/sockaddr.c b/network_io/unix/sockaddr.c
index 24a7019ff..51ccd0af3 100644
--- a/network_io/unix/sockaddr.c
+++ b/network_io/unix/sockaddr.c
@@ -145,33 +145,6 @@ APR_DECLARE(apr_status_t) apr_sockaddr_port_set(apr_sockaddr_t *sockaddr,
return APR_SUCCESS;
}
-/* XXX assumes IPv4... I don't think this function is needed anyway
- * since we have apr_sockaddr_info_get(), but we need to clean up Apache's
- * listen.c a bit more first.
- */
-APR_DECLARE(apr_status_t) apr_sockaddr_ip_set(apr_sockaddr_t *sockaddr,
- const char *addr)
-{
- apr_uint32_t ipaddr;
-
- if (!strcmp(addr, APR_ANYADDR)) {
- sockaddr->sa.sin.sin_addr.s_addr = htonl(INADDR_ANY);
- return APR_SUCCESS;
- }
-
- ipaddr = inet_addr(addr);
- if (ipaddr == (apr_uint32_t)-1) {
-#ifdef WIN32
- return WSAEADDRNOTAVAIL;
-#else
- return errno;
-#endif
- }
-
- sockaddr->sa.sin.sin_addr.s_addr = ipaddr;
- return APR_SUCCESS;
-}
-
APR_DECLARE(apr_status_t) apr_sockaddr_port_get(apr_port_t *port,
apr_sockaddr_t *sockaddr)
{