summaryrefslogtreecommitdiff
path: root/test/testflock.c
diff options
context:
space:
mode:
authorwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2001-06-08 04:49:50 +0000
committerwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2001-06-08 04:49:50 +0000
commit3755dfd612bd20f9d3d82c8a9a4da3b9bbff769b (patch)
tree3a8fe76653bb56eb9032a064b54d08479b07028d /test/testflock.c
parent08d8fb423db4b95cd75fd830320a84445d915a68 (diff)
downloadlibapr-3755dfd612bd20f9d3d82c8a9a4da3b9bbff769b.tar.gz
These are (thankfully) now irrelevant stubs. apr_terminate is defined
as _always_ compatible with atexit. A nice mindless exercise for my very sleep-deprived brain. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61735 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/testflock.c')
-rw-r--r--test/testflock.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/test/testflock.c b/test/testflock.c
index 74d46c5f0..e102714b1 100644
--- a/test/testflock.c
+++ b/test/testflock.c
@@ -154,11 +154,6 @@ static void do_write(void)
printf(" done.\nExiting.\n");
}
-static void closeapr(void)
-{
- apr_terminate();
-}
-
int main(int argc, const char * const *argv)
{
int reader = 0;
@@ -169,7 +164,7 @@ int main(int argc, const char * const *argv)
if (apr_initialize() != APR_SUCCESS)
errmsg("Could not initialize APR.\n");
- atexit(closeapr);
+ atexit(apr_terminate);
if (apr_pool_create(&pool, NULL) != APR_SUCCESS)
errmsg("Could not create global pool.\n");