diff options
author | aaron <aaron@13f79535-47bb-0310-9956-ffa450edef68> | 2002-02-01 01:18:53 +0000 |
---|---|---|
committer | aaron <aaron@13f79535-47bb-0310-9956-ffa450edef68> | 2002-02-01 01:18:53 +0000 |
commit | 9809c661524be2b812d6bdb8f0ea97b9e309320a (patch) | |
tree | a85549329342a112b25fabab545e68701159c81f /test/testprocmutex.c | |
parent | f13eaa3b2d9cce1f511b8cd4e0b8d5809d0951cc (diff) | |
download | libapr-9809c661524be2b812d6bdb8f0ea97b9e309320a.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: http://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.c | 4 |
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", |