summaryrefslogtreecommitdiff
path: root/test/testargs.c
diff options
context:
space:
mode:
authorWilliam A. Rowe Jr <wrowe@apache.org>2001-01-23 06:00:44 +0000
committerWilliam A. Rowe Jr <wrowe@apache.org>2001-01-23 06:00:44 +0000
commitfa1733fcb7d2d6df3711005e193df8661ac818f8 (patch)
tree94ade51ac80aa48534184f757828b8a687dd1698 /test/testargs.c
parent57c8f2be991ff28ebec33b1ed239555b880461cc (diff)
downloadapr-fa1733fcb7d2d6df3711005e193df8661ac818f8.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: https://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))