diff options
author | David Reid <dreid@apache.org> | 2000-11-09 16:09:50 +0100 |
---|---|---|
committer | David Reid <dreid@apache.org> | 2000-11-09 16:09:50 +0100 |
commit | 35034e600ce296b2a25834fa8564af9d009ef00b (patch) | |
tree | 4b1d95a52a73438d09265cf9e0027c9fb30fc27b /server/listen.c | |
parent | Return buff.h to the winnt mpm till Bill (or I, if I must) remove the (diff) | |
download | apache2-35034e600ce296b2a25834fa8564af9d009ef00b.tar.xz apache2-35034e600ce296b2a25834fa8564af9d009ef00b.zip |
Change the code to reflect the recent API changes...
Alter http_vhost.c to use the new apr_get_inaddr fucntion. Old code is still
there just in case it breaks. can someone check it who knows this stuff?
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86890 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'server/listen.c')
-rw-r--r-- | server/listen.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/listen.c b/server/listen.c index 673ac4351f..a3b964642b 100644 --- a/server/listen.c +++ b/server/listen.c @@ -87,7 +87,7 @@ static apr_status_t make_sock(apr_pool_t *p, ap_listen_rec *server) char *ipaddr; apr_get_port(&port, APR_LOCAL, s); - apr_get_local_ipaddr(&ipaddr,s); + apr_get_ipaddr(&ipaddr, APR_LOCAL, s); apr_snprintf(addr, sizeof(addr), "address %s port %u", ipaddr, (unsigned) port); @@ -183,7 +183,7 @@ static void alloc_listener(process_rec *process, char *addr, unsigned int port) /* see if we've got an old listener for this address:port */ for (walk = &old_listeners; *walk; walk = &(*walk)->next) { apr_get_port(&oldport, APR_LOCAL, (*walk)->sd); - apr_get_local_ipaddr(&oldaddr,(*walk)->sd); + apr_get_ipaddr(&oldaddr, APR_LOCAL, (*walk)->sd); if (!strcmp(oldaddr, addr) && port == oldport) { /* re-use existing record */ new = *walk; @@ -203,7 +203,7 @@ static void alloc_listener(process_rec *process, char *addr, unsigned int port) return; } apr_set_port(new->sd, APR_LOCAL, port); - apr_set_local_ipaddr(new->sd, addr); + apr_set_ipaddr(new->sd, APR_LOCAL, addr); new->next = ap_listeners; ap_listeners = new; } |