apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jor...@apache.org
Subject cvs commit: apr/test testall.c
Date Sat, 23 Nov 2002 21:47:03 GMT
jorton      2002/11/23 13:47:03

  Modified:    test     testall.c
  Log:
  Remove redundant NUM_TESTS array size and unused typedef.
  
  Revision  Changes    Path
  1.19      +3 -8      apr/test/testall.c
  
  Index: testall.c
  ===================================================================
  RCS file: /home/cvs/apr/test/testall.c,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- testall.c	23 Nov 2002 19:44:15 -0000	1.18
  +++ testall.c	23 Nov 2002 21:47:03 -0000	1.19
  @@ -57,18 +57,13 @@
   
   #include "test_apr.h"
   
  -#define NUM_TESTS 255
  -
   /* Top-level pool which can be used by tests. */
   apr_pool_t *p;
   
  -struct testlist {
  -    char *testname;
  +static const struct testlist {
  +    const char *testname;
       CuSuite *(*func)(void);
  -};
  -typedef struct testlist testlist;
  -
  -static testlist tests[NUM_TESTS] = {
  +} tests[] = {
       {"teststr", teststr},
       {"testtime", testtime},
       {"testvsn", testvsn},
  
  
  

Mime
View raw message