httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dr...@locus.apache.org
Subject cvs commit: apache-2.0/src/main http_vhost.c rfc1413.c util.c
Date Sat, 18 Nov 2000 16:04:07 GMT
dreid       00/11/18 08:04:07

  Modified:    src/main http_vhost.c rfc1413.c util.c
  Log:
  Change references of AF_ to reflect APR_ so they should work
  on all systems.
  
  Revision  Changes    Path
  1.39      +1 -1      apache-2.0/src/main/http_vhost.c
  
  Index: http_vhost.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/main/http_vhost.c,v
  retrieving revision 1.38
  retrieving revision 1.39
  diff -u -r1.38 -r1.39
  --- http_vhost.c	2000/11/10 16:11:14	1.38
  +++ http_vhost.c	2000/11/18 16:04:06	1.39
  @@ -636,7 +636,7 @@
   		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 {
  
  
  
  1.31      +1 -1      apache-2.0/src/main/rfc1413.c
  
  Index: rfc1413.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/main/rfc1413.c,v
  retrieving revision 1.30
  retrieving revision 1.31
  diff -u -r1.30 -r1.31
  --- rfc1413.c	2000/11/18 15:22:45	1.30
  +++ rfc1413.c	2000/11/18 16:04:06	1.31
  @@ -139,7 +139,7 @@
   	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. */
  
  
  
  1.81      +1 -1      apache-2.0/src/main/util.c
  
  Index: util.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/main/util.c,v
  retrieving revision 1.80
  retrieving revision 1.81
  diff -u -r1.80 -r1.81
  --- util.c	2000/11/11 06:05:59	1.80
  +++ util.c	2000/11/18 16:04:06	1.81
  @@ -1876,7 +1876,7 @@
   
       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);
       }
  
  
  

Mime
View raw message