httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@locus.apache.org
Subject cvs commit: apache-2.0/src/lib/apr/network_io/unix sockets.c
Date Tue, 04 Apr 2000 11:44:28 GMT
trawick     00/04/04 04:44:28

  Modified:    src/lib/apr/network_io/unix sockets.c
  Log:
  typecast struct sockaddr_in * to struct sockaddr * in a
  couple of calls to getsockname()
  
  Revision  Changes    Path
  1.35      +4 -2      apache-2.0/src/lib/apr/network_io/unix/sockets.c
  
  Index: sockets.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/apr/network_io/unix/sockets.c,v
  retrieving revision 1.34
  retrieving revision 1.35
  diff -u -r1.34 -r1.35
  --- sockets.c	2000/04/03 19:45:11	1.34
  +++ sockets.c	2000/04/04 11:44:27	1.35
  @@ -202,7 +202,8 @@
           return errno;
       }
   
  -    if (getsockname((*new)->socketdes, (*new)->local_addr, &((*new)->addr_len))
< 0) {
  +    if (getsockname((*new)->socketdes, (struct sockaddr *)(*new)->local_addr, 
  +                    &((*new)->addr_len)) < 0) {
   	return errno;
       }
   
  @@ -334,7 +335,8 @@
        
           (*sock)->addr_len = sizeof(*(*sock)->local_addr);
           (*sock)->timeout = -1;
  -        if (getsockname(*thesock, (*sock)->local_addr, &((*sock)->addr_len))
< 0) {
  +        if (getsockname(*thesock, (struct sockaddr *)(*sock)->local_addr, 
  +                        &((*sock)->addr_len)) < 0) {
               return errno;
           }
       }
  
  
  

Mime
View raw message