summaryrefslogtreecommitdiff
path: root/test/testargs.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/testargs.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/testargs.c')
-rw-r--r--test/testargs.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/test/testargs.c b/test/testargs.c
index 8a7cc825d..a5f6593a5 100644
--- a/test/testargs.c
+++ b/test/testargs.c
@@ -73,11 +73,6 @@ static void maybe_arg(const char *arg)
}
}
-static void closeapr(void)
-{
- apr_terminate();
-}
-
int main(int argc, const char * const argv[])
{
apr_pool_t *context;
@@ -86,7 +81,7 @@ int main(int argc, const char * const argv[])
const char *optarg;
apr_initialize();
- atexit(closeapr);
+ atexit(apr_terminate);
apr_pool_create(&context, NULL);
if (apr_getopt_init(&opt, context, argc, argv))