apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject cvs commit: apr/test testnames.c
Date Tue, 01 May 2001 11:09:21 GMT
trawick     01/05/01 04:09:21

  Modified:    test     testnames.c
  Log:
  get rid of a couple of warnings in testnames.c, one for a bad printf
  call and one for an argument type mismatch
  
  still one left:
  testnames.c: In function `mergeresult':
  testnames.c:86: warning: passing arg 1 of `apr_filepath_root' from incompatible pointer
type
  
  I'm not sure why first parm to apr_filepath_root() and first parm to
  apr_filepath_merge() have different types (and thus the same local
  var can't be passed cleanly to both).
  
  Revision  Changes    Path
  1.4       +2 -2      apr/test/testnames.c
  
  Index: testnames.c
  ===================================================================
  RCS file: /home/cvs/apr/test/testnames.c,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- testnames.c	2001/04/09 20:18:16	1.3
  +++ testnames.c	2001/05/01 11:09:21	1.4
  @@ -74,7 +74,7 @@
   {
       char errmsg[256];
       char *dstpath = NULL;
  -    char *srcpath;
  +    const char *srcpath;
       apr_status_t status = apr_filepath_merge(&dstpath, 
                                   strcmp(rootpath, "NULL") ? rootpath : NULL,
                                   strcmp(addpath, "NULL") ? addpath : NULL,
  @@ -90,7 +90,7 @@
           }
       }
       else {
  -        fprintf(stderr, "%s result for %s\n", errmsg, tdesc, dstpath);
  +        fprintf(stderr, "%s result for %s\n", errmsg, tdesc);
       }
   }
   
  
  
  

Mime
View raw message