]> granicus.if.org Git - apache/commitdiff
Change references of AF_ to reflect APR_ so they should work
authorDavid Reid <dreid@apache.org>
Sat, 18 Nov 2000 16:04:06 +0000 (16:04 +0000)
committerDavid Reid <dreid@apache.org>
Sat, 18 Nov 2000 16:04:06 +0000 (16:04 +0000)
on all systems.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87012 13f79535-47bb-0310-9956-ffa450edef68

server/rfc1413.c
server/util.c
server/vhost.c

index bafd9bd9a58ab00a51295a87752a21950bc74c7f..de545b910a06aec643e20fbbc209f21ee6d43d6e 100644 (file)
@@ -139,7 +139,7 @@ static int get_rfc1413(apr_socket_t *sock, apr_pool_t *p,
        return -1;
     }
 
-    if ((status = apr_getaddrinfo(&destsa, rmt_ip, AF_INET, RFC1413_PORT, 0,
+    if ((status = apr_getaddrinfo(&destsa, rmt_ip, APR_INET, RFC1413_PORT, 0,
                                   p)) != APR_SUCCESS) {
         /* This should not fail since we have a numeric address string
          * as the host. */
index 2cd50866c2f49b7cc9ab864289ef5194cbf0e489..a05443f25ebb903717f7e58831c453fdf2421c04 100644 (file)
@@ -1876,7 +1876,7 @@ unsigned long ap_get_virthost_addr(char *w, apr_port_t *ports)
 
     hep = gethostbyname(w);
 
-    if ((!hep) || (hep->h_addrtype != AF_INET || !hep->h_addr_list[0])) {
+    if ((!hep) || (hep->h_addrtype != APR_INET || !hep->h_addr_list[0])) {
        ap_log_error(APLOG_MARK, APLOG_STARTUP | APLOG_NOERRNO, 0, NULL, "Cannot resolve host name %s --- exiting!", w);
        exit(1);
     }
index 69fb6fb5cf4e78a68577cfee38469a7e0009c0da..950f90863e64fe1abb24d8c96233e30b2e32cc47 100644 (file)
@@ -636,7 +636,7 @@ void ap_fini_vhost_config(apr_pool_t *p, server_rec *main_s)
                struct hostent *h;
 
                if ((h = gethostbyaddr((char *) &(s->addrs->host_addr),
-                                       sizeof(struct in_addr), AF_INET))) {
+                                       sizeof(struct in_addr), APR_INET))) {
                    s->server_hostname = apr_pstrdup(p, (char *) h->h_name);
                }
                else {