You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ma...@apache.org on 2003/09/30 17:22:41 UTC

cvs commit: httpd-2.0/modules/mappers mod_rewrite.c

martin      2003/09/30 08:22:41

  Modified:    modules/mappers mod_rewrite.c
  Log:
  Match type of both arguments (get rid of compiler warning) in x ? y : z expression
  
  Revision  Changes    Path
  1.235     +2 -2      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.234
  retrieving revision 1.235
  diff -u -u -r1.234 -r1.235
  --- mod_rewrite.c	3 Sep 2003 19:27:06 -0000	1.234
  +++ mod_rewrite.c	30 Sep 2003 15:22:41 -0000	1.235
  @@ -2049,7 +2049,7 @@
           if (current->len) {
               current->next = (spc < SMALL_EXPANSION)
                               ? &(sresult[spc++])
  -                            : apr_palloc(pool, sizeof(result_list));
  +                            : (result_list *)apr_palloc(pool, sizeof(result_list));
               current = current->next;
               current->next = NULL;
               current->len = 0;
  @@ -2176,7 +2176,7 @@
               if (current->len) {
                   current->next = (spc < SMALL_EXPANSION)
                                   ? &(sresult[spc++])
  -                                : apr_palloc(pool, sizeof(result_list));
  +                                : (result_list *)apr_palloc(pool, sizeof(result_list));
                   current = current->next;
                   current->next = NULL;
               }