summaryrefslogtreecommitdiff
path: root/test/testargs.c
diff options
context:
space:
mode:
authorwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2001-01-23 06:00:44 +0000
committerwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2001-01-23 06:00:44 +0000
commit63c9fe00bbe7fa8d18728cbf3fdb161d010689f6 (patch)
tree94ade51ac80aa48534184f757828b8a687dd1698 /test/testargs.c
parent409e4332eed92d57ffb3e7bc44b68cd346345bf4 (diff)
downloadlibapr-63c9fe00bbe7fa8d18728cbf3fdb161d010689f6.tar.gz
Commit a bunch of cleanups to get win32 going again. Note the apr.dsp
built in debug mode is required to actually make these build. There are still todo's for win32 (need cl debug flags, for one). git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61100 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/testargs.c')
-rw-r--r--test/testargs.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/testargs.c b/test/testargs.c
index e9a5ecc02..1a0b6b40a 100644
--- a/test/testargs.c
+++ b/test/testargs.c
@@ -73,6 +73,11 @@ static void maybe_arg(const char *arg)
}
}
+void closeapr(void)
+{
+ apr_terminate();
+}
+
int main(int argc, const char * const argv[])
{
apr_pool_t *context;
@@ -81,7 +86,7 @@ int main(int argc, const char * const argv[])
const char *optarg;
apr_initialize();
- atexit(apr_terminate);
+ atexit(closeapr);
apr_create_pool(&context, NULL);
if (apr_initopt(&opt, context, argc, argv))