httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@hyperreal.org
Subject cvs commit: apache-apr/apr/network_io/unix poll.c sockopt.c
Date Thu, 27 May 1999 13:09:52 GMT
rbb         99/05/27 06:09:51

  Modified:    apr/network_io/unix poll.c sockopt.c
  Log:
  Cleanup some warning on more stringent compilers.
  
  Revision  Changes    Path
  1.10      +1 -0      apache-apr/apr/network_io/unix/poll.c
  
  Index: poll.c
  ===================================================================
  RCS file: /home/cvs/apache-apr/apr/network_io/unix/poll.c,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- poll.c	1999/05/25 17:03:44	1.9
  +++ poll.c	1999/05/27 13:09:51	1.10
  @@ -56,6 +56,7 @@
   #include "networkio.h"
   #include "apr_network_io.h"
   #include "apr_general.h"
  +#include "apr_lib.h"
   #include <errno.h>
   #include <sys/poll.h>
   
  
  
  
  1.8       +3 -3      apache-apr/apr/network_io/unix/sockopt.c
  
  Index: sockopt.c
  ===================================================================
  RCS file: /home/cvs/apache-apr/apr/network_io/unix/sockopt.c,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- sockopt.c	1999/05/25 17:03:48	1.7
  +++ sockopt.c	1999/05/27 13:09:51	1.8
  @@ -120,17 +120,17 @@
           one = 0;
   
       if (opt & APR_SO_KEEPALIVE) {
  -        if (setsockopt(sock->socketdes, SOL_SOCKET, SO_KEEPALIVE, (char *) one, sizeof(int))
== -1) {
  +        if (setsockopt(sock->socketdes, SOL_SOCKET, SO_KEEPALIVE, (void *)&one,
sizeof(int)) == -1) {
               return errno;
           }
       }
       if (opt & APR_SO_DEBUG) {
  -        if (setsockopt(sock->socketdes, SOL_SOCKET, SO_DEBUG, (char *) one, sizeof(int))
== -1) {
  +        if (setsockopt(sock->socketdes, SOL_SOCKET, SO_DEBUG, (void *)&one, sizeof(int))
== -1) {
               return errno;
           }
       }
       if (opt & APR_SO_REUSEADDR) {
  -        if (setsockopt(sock->socketdes, SOL_SOCKET, SO_REUSEADDR, (char *) one, sizeof(int))
== -1) {
  +        if (setsockopt(sock->socketdes, SOL_SOCKET, SO_REUSEADDR, (void *)&one,
sizeof(int)) == -1) {
               return errno;
           }
       }
  
  
  

Mime
View raw message