You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rb...@locus.apache.org on 2000/03/15 16:12:01 UTC

cvs commit: apache-2.0/src/lib/apr/test ab_apr.c testargs.c

rbb         00/03/15 07:12:01

  Modified:    src/lib/apr/test ab_apr.c testargs.c
  Log:
  Update the test programs so they work with ap_getopt again.
  
  Revision  Changes    Path
  1.18      +1 -1      apache-2.0/src/lib/apr/test/ab_apr.c
  
  Index: ab_apr.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/apr/test/ab_apr.c,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- ab_apr.c	2000/03/10 00:06:33	1.17
  +++ ab_apr.c	2000/03/15 15:12:00	1.18
  @@ -892,7 +892,7 @@
       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);
  
  
  
  1.9       +1 -1      apache-2.0/src/lib/apr/test/testargs.c
  
  Index: testargs.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/apr/test/testargs.c,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- testargs.c	2000/03/10 00:06:33	1.8
  +++ testargs.c	2000/03/15 15:12:00	1.9
  @@ -70,7 +70,7 @@
   
       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':