You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by tr...@apache.org on 2001/12/02 02:07:02 UTC
cvs commit: apr/test testmem.c
trawick 01/12/01 17:07:02
Modified: test testmem.c
Log:
fix a bogus cast so that testmem can compile with xlc (AIX) now
that we have xlc running in a more anal mode than before (we removed
-qlanglvl=extended recently)
Revision Changes Path
1.13 +3 -3 apr/test/testmem.c
Index: testmem.c
===================================================================
RCS file: /home/cvs/apr/test/testmem.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- testmem.c 2001/09/28 14:05:23 1.12
+++ testmem.c 2001/12/02 01:07:02 1.13
@@ -87,10 +87,10 @@
static void its_a_pool(apr_pool_t *pool, _test_ *t, char *name, int lt)
{
- t->malloc_fn = (void*)apr_palloc;
- t->calloc_fn = (void*)apr_pcalloc;
+ t->malloc_fn = (void *(*)(void *, apr_size_t))apr_palloc;
+ t->calloc_fn = (void *(*)(void *, apr_size_t))apr_pcalloc;
t->free_fn = NULL;
- t->reset_fn = (void*)apr_pool_clear;
+ t->reset_fn = (void *(*)(void *))apr_pool_clear;
t->memory = pool;
t->title = name;
t->large_tests = lt;