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 testmmap.c testall.c testpools.c testtable.c
Date Thu, 14 Nov 2002 12:25:56 GMT
jorton      2002/11/14 04:25:56

  Modified:    test     testmmap.c testall.c testpools.c testtable.c
  Log:
  Make global variables static where appropriate.
  
  Revision  Changes    Path
  1.35      +4 -4      apr/test/testmmap.c
  
  Index: testmmap.c
  ===================================================================
  RCS file: /home/cvs/apr/test/testmmap.c,v
  retrieving revision 1.34
  retrieving revision 1.35
  diff -u -r1.34 -r1.35
  --- testmmap.c	14 Nov 2002 10:24:52 -0000	1.34
  +++ testmmap.c	14 Nov 2002 12:25:56 -0000	1.35
  @@ -73,10 +73,10 @@
   
   #else
   
  -apr_mmap_t *themmap = NULL;
  -apr_file_t *thefile = NULL;
  -char *file1;
  -apr_finfo_t finfo;
  +static apr_mmap_t *themmap = NULL;
  +static apr_file_t *thefile = NULL;
  +static char *file1;
  +static apr_finfo_t finfo;
   
   static void create_filename(CuTest *tc)
   {
  
  
  
  1.15      +2 -1      apr/test/testall.c
  
  Index: testall.c
  ===================================================================
  RCS file: /home/cvs/apr/test/testall.c,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- testall.c	14 Nov 2002 12:16:35 -0000	1.14
  +++ testall.c	14 Nov 2002 12:25:56 -0000	1.15
  @@ -59,11 +59,12 @@
   
   #define NUM_TESTS 255
   
  +/* Top-level pool which can be used by tests. */
   apr_pool_t *p;
   
   typedef CuSuite *(testfunc)(void);
   
  -testfunc *tests[NUM_TESTS] = {
  +static testfunc *tests[NUM_TESTS] = {
       teststr,
       testtime,
       testvsn,
  
  
  
  1.6       +2 -2      apr/test/testpools.c
  
  Index: testpools.c
  ===================================================================
  RCS file: /home/cvs/apr/test/testpools.c,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- testpools.c	23 Oct 2002 14:19:57 -0000	1.5
  +++ testpools.c	14 Nov 2002 12:25:56 -0000	1.6
  @@ -67,8 +67,8 @@
   
   #define ALLOC_BYTES 1024
   
  -apr_pool_t *pmain = NULL;
  -apr_pool_t *pchild = NULL;
  +static apr_pool_t *pmain = NULL;
  +static apr_pool_t *pchild = NULL;
   
   static void alloc_bytes(CuTest *tc)
   {
  
  
  
  1.5       +1 -1      apr/test/testtable.c
  
  Index: testtable.c
  ===================================================================
  RCS file: /home/cvs/apr/test/testtable.c,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- testtable.c	22 Oct 2002 05:44:12 -0000	1.4
  +++ testtable.c	14 Nov 2002 12:25:56 -0000	1.5
  @@ -68,7 +68,7 @@
   #include <string.h>
   #endif
   
  -apr_table_t *t1 = NULL;
  +static apr_table_t *t1 = NULL;
   
   static void table_make(CuTest *tc)
   {
  
  
  

Mime
View raw message