You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by dr...@apache.org on 2002/01/13 16:08:12 UTC
cvs commit: apr/network_io/unix poll.c
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);