summaryrefslogtreecommitdiff
path: root/test/testflock.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/testflock.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/testflock.c')
-rw-r--r--test/testflock.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/testflock.c b/test/testflock.c
index 635c43ccf..bf6ff8544 100644
--- a/test/testflock.c
+++ b/test/testflock.c
@@ -141,6 +141,11 @@ static void do_write(void)
printf(" done.\nExiting.\n");
}
+void closeapr(void)
+{
+ apr_terminate();
+}
+
int main(int argc, const char * const *argv)
{
int reader = 0;
@@ -151,7 +156,7 @@ int main(int argc, const char * const *argv)
if (apr_initialize() != APR_SUCCESS)
errmsg("Could not initialize APR.\n");
- atexit(apr_terminate);
+ atexit(closeapr);
if (apr_create_pool(&pool, NULL) != APR_SUCCESS)
errmsg("Could not create global pool.\n");