apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bri...@apache.org
Subject cvs commit: apr/file_io/unix readwrite.c
Date Thu, 04 Jul 2002 23:10:24 GMT
brianp      2002/07/04 16:10:24

  Modified:    file_io/unix readwrite.c
  Log:
  use the time conversion macros rather than dividing by APR_USEC_PER_SEC
  
  Revision  Changes    Path
  1.80      +2 -2      apr/file_io/unix/readwrite.c
  
  Index: readwrite.c
  ===================================================================
  RCS file: /home/cvs/apr/file_io/unix/readwrite.c,v
  retrieving revision 1.79
  retrieving revision 1.80
  diff -u -r1.79 -r1.80
  --- readwrite.c	28 Jun 2002 14:04:35 -0000	1.79
  +++ readwrite.c	4 Jul 2002 23:10:24 -0000	1.80
  @@ -75,8 +75,8 @@
           FD_ZERO(&fdset);
           FD_SET(file->filedes, &fdset);
           if (file->timeout >= 0) {
  -            tv.tv_sec = file->timeout / APR_USEC_PER_SEC;
  -            tv.tv_usec = file->timeout % APR_USEC_PER_SEC;
  +            tv.tv_sec = apr_time_sec(file->timeout);
  +            tv.tv_usec = apr_time_usec(file->timeout);
               tvptr = &tv;
           }
           else {
  
  
  

Mime
View raw message