summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorrbb <rbb@13f79535-47bb-0310-9956-ffa450edef68>2000-03-15 15:12:00 +0000
committerrbb <rbb@13f79535-47bb-0310-9956-ffa450edef68>2000-03-15 15:12:00 +0000
commitadfa13cb9d5ab097b7546627fa4e0684870e72c0 (patch)
tree09e71f9a0d27e055b041cded7597d32514c8458b /test
parent9489543ff637ee1fabe78872eec3d3d7c9f7d3e9 (diff)
downloadlibapr-adfa13cb9d5ab097b7546627fa4e0684870e72c0.tar.gz
Update the test programs so they work with ap_getopt again.
Reviewed by: git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59709 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test')
-rw-r--r--test/ab_apr.c2
-rw-r--r--test/testargs.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/ab_apr.c b/test/ab_apr.c
index 695b14807..1dba6c8d7 100644
--- a/test/ab_apr.c
+++ b/test/ab_apr.c
@@ -892,7 +892,7 @@ int main(int argc, char **argv)
ap_create_context(&cntxt, NULL);
ap_optind = 1;
- while (ap_getopt(cntxt, argc, argv, "n:c:t:T:p:v:kVhwx:y:z:", &c) == APR_SUCCESS) {
+ while (ap_getopt(argc, argv, "n:c:t:T:p:v:kVhwx:y:z:", &c, cntxt) == APR_SUCCESS) {
switch (c) {
case 'n':
requests = atoi(ap_optarg);
diff --git a/test/testargs.c b/test/testargs.c
index 2cdead072..17c35a504 100644
--- a/test/testargs.c
+++ b/test/testargs.c
@@ -70,7 +70,7 @@ int main(int argc, char * const argv[])
ap_create_context(&context, NULL);
- while (ap_getopt(context, argc, argv, "abc:d::", &data) == APR_SUCCESS) {
+ while (ap_getopt(argc, argv, "abc:d::", &data, context) == APR_SUCCESS) {
switch(data) {
case 'a':
case 'b':