httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject cvs commit: httpd-2.0/modules/mappers mod_rewrite.c
Date Tue, 25 Feb 2003 14:44:43 GMT
trawick     2003/02/25 06:44:42

  Modified:    modules/mappers mod_rewrite.c
  Log:
  fix some const-ness problems which break the compile with the native
  compiler for AIX (and probably HP-UX and Tru64 as well, since they
  tend to be picky too)
  
  Revision  Changes    Path
  1.145     +3 -3      httpd-2.0/modules/mappers/mod_rewrite.c
  
  Index: mod_rewrite.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/mappers/mod_rewrite.c,v
  retrieving revision 1.144
  retrieving revision 1.145
  diff -u -r1.144 -r1.145
  --- mod_rewrite.c	24 Feb 2003 21:55:07 -0000	1.144
  +++ mod_rewrite.c	25 Feb 2003 14:44:42 -0000	1.145
  @@ -4252,8 +4252,8 @@
   static int prefix_stat(const char *path, apr_pool_t *pool)
   {
       const char *curpath = path;
  -    char *root;
  -    char *slash;
  +    const char *root;
  +    const char *slash;
       char *statpath;
       apr_status_t rv;
   
  @@ -4266,7 +4266,7 @@
       /* let's recognize slashes only, the mod_rewrite semantics are opaque
        * enough.
        */
  -    if ((slash = ap_strchr(curpath, '/')) != NULL) {
  +    if ((slash = ap_strchr_c(curpath, '/')) != NULL) {
           rv = apr_filepath_merge(&statpath, root,
                                   apr_pstrndup(pool, curpath,
                                                (apr_size_t)(slash - curpath)),
  
  
  

Mime
View raw message