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 sockopt.c
Date Thu, 16 Oct 2003 10:54:45 GMT
bjh         2003/10/16 03:54:45

  Modified:    network_io/os2 sockopt.c
  Log:
  OS/2: get apr_socket_atmark() to build, adding a required size parameter to
  the ioctl call.
  
  Revision  Changes    Path
  1.36      +3 -2      apr/network_io/os2/sockopt.c
  
  Index: sockopt.c
  ===================================================================
  RCS file: /home/cvs/apr/network_io/os2/sockopt.c,v
  retrieving revision 1.35
  retrieving revision 1.36
  diff -u -r1.35 -r1.36
  --- sockopt.c	14 Oct 2003 23:47:29 -0000	1.35
  +++ sockopt.c	16 Oct 2003 10:54:45 -0000	1.36
  @@ -160,8 +160,9 @@
   {
       int oobmark;
   
  -    if (ioctl(sock->socketdes, SIOCATMARK, (void*) &oobmark) < 0)
  -        return APR_OS2_STATUS(sock_errno());;
  +    if (ioctl(sock->socketdes, SIOCATMARK, (void*)&oobmark, sizeof(oobmark)) <
0) {
  +        return APR_OS2_STATUS(sock_errno());
  +    }
   
       *atmark = (oobmark != 0);
   
  
  
  

Mime
View raw message