summaryrefslogtreecommitdiff
path: root/pjlib/src/pj/ioqueue_select.c
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2007-05-11 15:14:34 +0000
committerBenny Prijono <bennylp@teluu.com>2007-05-11 15:14:34 +0000
commit208776ec0c5c77623637a28b88391067df24e682 (patch)
treed474825faeaa48869df57b5470a8ba417ebf4489 /pjlib/src/pj/ioqueue_select.c
parentb4e01cefd4f354128396e85f205ccfa0879bc319 (diff)
HUGE changeset to make the rest of the libraries compile with C++ mode
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1266 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib/src/pj/ioqueue_select.c')
-rw-r--r--pjlib/src/pj/ioqueue_select.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pjlib/src/pj/ioqueue_select.c b/pjlib/src/pj/ioqueue_select.c
index f5e36904..e200d642 100644
--- a/pjlib/src/pj/ioqueue_select.c
+++ b/pjlib/src/pj/ioqueue_select.c
@@ -193,7 +193,7 @@ PJ_DEF(pj_status_t) pj_ioqueue_create( pj_pool_t *pool,
sizeof(union operation_key), PJ_EBUG);
/* Create and init common ioqueue stuffs */
- ioqueue = pj_pool_alloc(pool, sizeof(pj_ioqueue_t));
+ ioqueue = PJ_POOL_ALLOC_T(pool, pj_ioqueue_t);
ioqueue_init(ioqueue);
ioqueue->max = max_fd;
@@ -230,7 +230,7 @@ PJ_DEF(pj_status_t) pj_ioqueue_create( pj_pool_t *pool,
for (i=0; i<max_fd; ++i) {
pj_ioqueue_key_t *key;
- key = pj_pool_alloc(pool, sizeof(pj_ioqueue_key_t));
+ key = PJ_POOL_ALLOC_T(pool, pj_ioqueue_key_t);
key->ref_count = 0;
rc = pj_mutex_create_recursive(pool, NULL, &key->mutex);
if (rc != PJ_SUCCESS) {