apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject cvs commit: apr/network_io/unix sa_common.c
Date Tue, 15 Oct 2002 04:10:31 GMT
wrowe       2002/10/14 21:10:31

  Modified:    network_io/unix sa_common.c
  Log:
    Change kibitz to a better kibitz.
  
  Revision  Changes    Path
  1.65      +14 -1     apr/network_io/unix/sa_common.c
  
  Index: sa_common.c
  ===================================================================
  RCS file: /home/cvs/apr/network_io/unix/sa_common.c,v
  retrieving revision 1.64
  retrieving revision 1.65
  diff -u -r1.64 -r1.65
  --- sa_common.c	14 Oct 2002 00:03:46 -0000	1.64
  +++ sa_common.c	15 Oct 2002 04:10:31 -0000	1.65
  @@ -474,7 +474,20 @@
   #ifdef WIN32
               return apr_get_netos_error();
   #else
  -            return (h_errno + APR_OS_START_SYSERR);
  +            switch (h_errno) {
  +#ifdef NETDB_INTERNAL
  +                NETDB_INTERNAL:
  +                    return APR_FROM_OS_ERROR(errno);
  +                HOST_NOT_FOUND:
  +                    return APR_EHOSTUNREACH;
  +                NO_DATA:
  +                    return APR_E;
  +                NO_RECOVERY:
  +                    return APR_EHOSTUNREACH;
  +                TRY_AGAIN:
  +                    return APR_EAGAIN;
  +            }
  +            /* return (h_errno + APR_OS_START_SYSERR); */
   #endif
           }
       }
  
  
  

Mime
View raw message