summaryrefslogtreecommitdiff
path: root/test/testargs.c
diff options
context:
space:
mode:
authortrawick <trawick@13f79535-47bb-0310-9956-ffa450edef68>2000-04-03 02:39:27 +0000
committertrawick <trawick@13f79535-47bb-0310-9956-ffa450edef68>2000-04-03 02:39:27 +0000
commit80847525785dfcfab87aff005f424f9cbd1cb627 (patch)
tree88ceba9fe994e83bc39cc0f1426be7f78c2b43e3 /test/testargs.c
parentb828ab5a6e1c58c5ac86d81b270e01ba2d612c83 (diff)
downloadlibapr-80847525785dfcfab87aff005f424f9cbd1cb627.tar.gz
call ap_initialize() and ap_terminate()
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59763 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/testargs.c')
-rw-r--r--test/testargs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/testargs.c b/test/testargs.c
index ca1b5a0c1..df4b6bd2d 100644
--- a/test/testargs.c
+++ b/test/testargs.c
@@ -58,6 +58,7 @@
#include "apr_lib.h"
#include "apr_getopt.h"
#include <stdio.h>
+#include <stdlib.h>
#ifdef BEOS
#include <unistd.h>
#endif
@@ -67,6 +68,8 @@ int main(int argc, char * const argv[])
ap_context_t *context;
ap_int32_t data;
+ ap_initialize();
+ atexit(ap_terminate);
ap_create_context(&context, NULL);
while (ap_getopt(argc, argv, "abc:d::", &data, context) == APR_SUCCESS) {