summaryrefslogtreecommitdiff
path: root/file_io/unix/pipe.c
diff options
context:
space:
mode:
authorrbb <rbb@13f79535-47bb-0310-9956-ffa450edef68>2000-04-30 21:17:57 +0000
committerrbb <rbb@13f79535-47bb-0310-9956-ffa450edef68>2000-04-30 21:17:57 +0000
commit1684ba7f65fe76d6f0f41b696a8229f51e6eacbf (patch)
tree93fc1a44de5c1d6f9461dd99eeba2973d6c88ee3 /file_io/unix/pipe.c
parent70342641a3982c3c1bea7ec301a7167cfd82e7e9 (diff)
downloadlibapr-1684ba7f65fe76d6f0f41b696a8229f51e6eacbf.tar.gz
Use ap_pcalloc instead of ap_palloc where it makes sense.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60005 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'file_io/unix/pipe.c')
-rw-r--r--file_io/unix/pipe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/file_io/unix/pipe.c b/file_io/unix/pipe.c
index 2f2091bd8..5e00e6436 100644
--- a/file_io/unix/pipe.c
+++ b/file_io/unix/pipe.c
@@ -93,7 +93,7 @@ ap_status_t ap_create_pipe(ap_file_t **in, ap_file_t **out, ap_pool_t *cont)
return errno;
}
- (*in) = (ap_file_t *)ap_palloc(cont, sizeof(ap_file_t));
+ (*in) = (ap_file_t *)ap_pcalloc(cont, sizeof(ap_file_t));
(*in)->cntxt = cont;
(*in)->filedes = filedes[0];
(*in)->pipe = 1;
@@ -105,7 +105,7 @@ ap_status_t ap_create_pipe(ap_file_t **in, ap_file_t **out, ap_pool_t *cont)
(*in)->thlock = NULL;
#endif
- (*out) = (ap_file_t *)ap_palloc(cont, sizeof(ap_file_t));
+ (*out) = (ap_file_t *)ap_pcalloc(cont, sizeof(ap_file_t));
(*out)->cntxt = cont;
(*out)->filedes = filedes[1];
(*out)->pipe = 1;