apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dr...@apache.org
Subject cvs commit: apr/network_io/unix poll.c
Date Sun, 13 Jan 2002 15:08:12 GMT
dreid       02/01/13 07:08:12

  Modified:    network_io/unix poll.c
  Log:
  Again, no need to use apr_pcalloc as we then do FD_ZERO, so change to use the
  cheaper call to apr_palloc.
  
  Revision  Changes    Path
  1.51      +6 -6      apr/network_io/unix/poll.c
  
  Index: poll.c
  ===================================================================
  RCS file: /home/cvs/apr/network_io/unix/poll.c,v
  retrieving revision 1.50
  retrieving revision 1.51
  diff -u -r1.50 -r1.51
  --- poll.c	13 Nov 2001 19:46:41 -0000	1.50
  +++ poll.c	13 Jan 2002 15:08:12 -0000	1.51
  @@ -229,12 +229,12 @@
           return APR_ENOMEM;
       }
       (*new)->cntxt = cont;
  -    (*new)->read = (fd_set *)apr_pcalloc(cont, sizeof(fd_set));
  -    (*new)->write = (fd_set *)apr_pcalloc(cont, sizeof(fd_set));
  -    (*new)->except = (fd_set *)apr_pcalloc(cont, sizeof(fd_set));
  -    (*new)->read_set = (fd_set *)apr_pcalloc(cont, sizeof(fd_set));
  -    (*new)->write_set = (fd_set *)apr_pcalloc(cont, sizeof(fd_set));
  -    (*new)->except_set = (fd_set *)apr_pcalloc(cont, sizeof(fd_set));
  +    (*new)->read       = (fd_set *)apr_palloc(cont, sizeof(fd_set));
  +    (*new)->write      = (fd_set *)apr_palloc(cont, sizeof(fd_set));
  +    (*new)->except     = (fd_set *)apr_palloc(cont, sizeof(fd_set));
  +    (*new)->read_set   = (fd_set *)apr_palloc(cont, sizeof(fd_set));
  +    (*new)->write_set  = (fd_set *)apr_palloc(cont, sizeof(fd_set));
  +    (*new)->except_set = (fd_set *)apr_palloc(cont, sizeof(fd_set));
       FD_ZERO((*new)->read);
       FD_ZERO((*new)->write);
       FD_ZERO((*new)->except);
  
  
  

Mime
View raw message