summaryrefslogtreecommitdiff
path: root/test/testprocmutex.c
diff options
context:
space:
mode:
authorAaron Bannert <aaron@apache.org>2002-02-01 01:18:53 +0000
committerAaron Bannert <aaron@apache.org>2002-02-01 01:18:53 +0000
commitccce29fdbef34738d3bae467e8fc3f0c74236243 (patch)
treea85549329342a112b25fabab545e68701159c81f /test/testprocmutex.c
parent10e828ec17f8a62c795ebd3650f3f2a90c2099f2 (diff)
downloadapr-ccce29fdbef34738d3bae467e8fc3f0c74236243.tar.gz
Bring this up to date with the new shared memory API. This should
get us compiling again (and the test seems to work, too). git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62885 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/testprocmutex.c')
-rw-r--r--test/testprocmutex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/testprocmutex.c b/test/testprocmutex.c
index 8ba213d5e..9fba59993 100644
--- a/test/testprocmutex.c
+++ b/test/testprocmutex.c
@@ -179,8 +179,8 @@ int main(int argc, const char * const *argv)
exit(-1);
}
- apr_shm_init(&shm, sizeof(int), shmname, pool);
- x = apr_shm_calloc(shm, sizeof(int));
+ apr_shm_create(&shm, sizeof(int), shmname, pool);
+ x = apr_shm_baseaddr_get(shm);
if ((rv = test_exclusive(lockname)) != APR_SUCCESS) {
fprintf(stderr,"Exclusive Lock test failed : [%d] %s\n",