You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by bn...@apache.org on 2001/08/06 17:57:29 UTC

cvs commit: apr/network_io/win32 sockopt.c

bnicholes    01/08/06 08:57:29

  Modified:    network_io/win32 sockopt.c
  Log:
  Fixed the data types of the local variables used in the calls to ioctlsocket() to
  conform to the prototypes in order to clean up a type mismatch problem
  during compilation.
  
  Revision  Changes    Path
  1.34      +2 -2      apr/network_io/win32/sockopt.c
  
  Index: sockopt.c
  ===================================================================
  RCS file: /home/cvs/apr/network_io/win32/sockopt.c,v
  retrieving revision 1.33
  retrieving revision 1.34
  diff -u -r1.33 -r1.34
  --- sockopt.c	2001/04/02 17:54:02	1.33
  +++ sockopt.c	2001/08/06 15:57:29	1.34
  @@ -60,7 +60,7 @@
   
   apr_status_t soblock(SOCKET sd)
   {
  -    int zero = 0;
  +    u_long zero = 0;
   
       if (ioctlsocket(sd, FIONBIO, &zero) == SOCKET_ERROR) {
           return apr_get_netos_error();
  @@ -70,7 +70,7 @@
   
   apr_status_t sononblock(SOCKET sd)
   {
  -    int one = 1;
  +    u_long one = 1;
   
       if (ioctlsocket(sd, FIONBIO, &one) == SOCKET_ERROR) {
           return apr_get_netos_error();