diff options
Diffstat (limited to 'lib/ds/plarena.c')
-rw-r--r-- | lib/ds/plarena.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/ds/plarena.c b/lib/ds/plarena.c index ad541a5d..ad26f4a3 100644 --- a/lib/ds/plarena.c +++ b/lib/ds/plarena.c @@ -165,7 +165,7 @@ PR_IMPLEMENT(void *) PL_ArenaAllocate(PLArenaPool *pool, PRUint32 nb) do { if ( a->avail +nb <= a->limit ) { pool->current = a; - rp = (void *)a->avail; + rp = (char *)a->avail; a->avail += nb; return rp; } @@ -188,7 +188,7 @@ PR_IMPLEMENT(void *) PL_ArenaAllocate(PLArenaPool *pool, PRUint32 nb) p->next = a->next; UnlockArena(); a->avail = a->base; - rp = (void *)a->avail; + rp = (char *)a->avail; a->avail += nb; /* the newly allocated arena is linked after pool->current * and becomes pool->current */ @@ -211,7 +211,7 @@ PR_IMPLEMENT(void *) PL_ArenaAllocate(PLArenaPool *pool, PRUint32 nb) if ( NULL != a ) { a->limit = (PRUword)a + sz; a->base = a->avail = (PRUword)PL_ARENA_ALIGN(pool, a + 1); - rp = (void *)a->avail; + rp = (char *)a->avail; a->avail += nb; /* the newly allocated arena is linked after pool->current * and becomes pool->current */ @@ -339,7 +339,7 @@ PR_IMPLEMENT(void) PL_CompactArenaPool(PLArenaPool *ap) #endif } -PR_IMPLEMENT(void) PL_ArenaFinish() +PR_IMPLEMENT(void) PL_ArenaFinish(void) { PLArena *a, *next; |