You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by gs...@apache.org on 2001/02/05 06:19:23 UTC

cvs commit: apr/network_io/unix sa_common.c

gstein      01/02/04 21:19:23

  Modified:    network_io/unix sa_common.c
  Log:
  for portability: use apr_uint32_t rather than u_long. the latter is a BSDism
  that may not be available on all platforms.
  
  Revision  Changes    Path
  1.25      +2 -2      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.24
  retrieving revision 1.25
  diff -u -u -r1.24 -r1.25
  --- sa_common.c	2001/01/18 20:07:33	1.24
  +++ sa_common.c	2001/02/05 05:19:22	1.25
  @@ -85,7 +85,7 @@
   APR_DECLARE(apr_status_t) apr_set_ipaddr(apr_sockaddr_t *sockaddr,
                                            const char *addr)
   {
  -    u_long ipaddr;
  +    apr_uint32_t ipaddr;
       
       if (!strcmp(addr, APR_ANYADDR)) {
           sockaddr->sa.sin.sin_addr.s_addr = htonl(INADDR_ANY);
  @@ -93,7 +93,7 @@
       }
       
       ipaddr = inet_addr(addr);
  -    if (ipaddr == (u_long)-1) {
  +    if (ipaddr == (apr_uint32_t)-1) {
   #ifdef WIN32
           return WSAEADDRNOTAVAIL;
   #else