apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@apache.org
Subject cvs commit: apr/network_io/os2 sockets.c
Date Wed, 03 Jan 2001 01:48:49 GMT
bjh         01/01/02 17:48:49

  Modified:    network_io/os2 sockets.c
  Log:
  OS/2: Copy pool pointer into a socket's apr_sockaddr_t's
  
  Revision  Changes    Path
  1.38      +4 -1      apr/network_io/os2/sockets.c
  
  Index: sockets.c
  ===================================================================
  RCS file: /home/cvs/apr/network_io/os2/sockets.c,v
  retrieving revision 1.37
  retrieving revision 1.38
  diff -u -r1.37 -r1.38
  --- sockets.c	2001/01/03 01:44:26	1.37
  +++ sockets.c	2001/01/03 01:48:48	1.38
  @@ -112,15 +112,18 @@
           sock->remote_addr->ipaddr_len = sizeof(struct in6_addr);
       }
   #endif
  -}                                                                                     
            
  +}
  +
   static void alloc_socket(apr_socket_t **new, apr_pool_t *p)
   {
       *new = (apr_socket_t *)apr_pcalloc(p, sizeof(apr_socket_t));
       (*new)->cntxt = p;
       (*new)->local_addr = (apr_sockaddr_t *)apr_pcalloc((*new)->cntxt,
                                                          sizeof(apr_sockaddr_t));
  +    (*new)->local_addr->pool = p;
       (*new)->remote_addr = (apr_sockaddr_t *)apr_pcalloc((*new)->cntxt,
                                                           sizeof(apr_sockaddr_t));
  +    (*new)->remote_addr->pool = p;
   }
   
   apr_status_t apr_create_socket(apr_socket_t **new, int ofamily, int type,
  
  
  

Mime
View raw message