summaryrefslogtreecommitdiff
path: root/test/testdso.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/testdso.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/testdso.c')
-rw-r--r--test/testdso.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/test/testdso.c b/test/testdso.c
index 160fad15d..428347597 100644
--- a/test/testdso.c
+++ b/test/testdso.c
@@ -11,11 +11,6 @@
#define LIB_NAME "mod_test.so"
-static void closeapr(void)
-{
- apr_terminate();
-}
-
int main (int argc, char ** argv)
{
apr_dso_handle_t *h = NULL;
@@ -33,7 +28,7 @@ int main (int argc, char ** argv)
strcat(filename, LIB_NAME);
apr_initialize();
- atexit(closeapr);
+ atexit(apr_terminate);
if (apr_pool_create(&cont, NULL) != APR_SUCCESS) {
fprintf(stderr, "Couldn't allocate context.");