You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by je...@apache.org on 2008/09/16 20:28:47 UTC

svn commit: r695998 - in /httpd/flood/trunk: CHANGES flood_round_robin.c

Author: jerenkrantz
Date: Tue Sep 16 11:28:46 2008
New Revision: 695998

URL: http://svn.apache.org/viewvc?rev=695998&view=rev
Log:
Fix compilation errors with newer gcc versions.

* flood_round_robin.c
  (round_robin_profile_init): Give compiler a bigger clue about what to cast.

Submitted by: Ohad Lutzky
Reviewed by: jerenkrantz

Modified:
    httpd/flood/trunk/CHANGES
    httpd/flood/trunk/flood_round_robin.c

Modified: httpd/flood/trunk/CHANGES
URL: http://svn.apache.org/viewvc/httpd/flood/trunk/CHANGES?rev=695998&r1=695997&r2=695998&view=diff
==============================================================================
--- httpd/flood/trunk/CHANGES (original)
+++ httpd/flood/trunk/CHANGES Tue Sep 16 11:28:46 2008
@@ -1,5 +1,8 @@
 Changes since 1.0:
 
+* Fix compilation error with newer gcc versions.
+  [Ohad Lutzky <ohad lutzky.net>]
+
 * Implement a random substitution feature; requires a requesttemplate,
   one or more substitution variables of the form ${varname) in the
   requesttemplate and a substitution file formatted with one value

Modified: httpd/flood/trunk/flood_round_robin.c
URL: http://svn.apache.org/viewvc/httpd/flood/trunk/flood_round_robin.c?rev=695998&r1=695997&r2=695998&view=diff
==============================================================================
--- httpd/flood/trunk/flood_round_robin.c (original)
+++ httpd/flood/trunk/flood_round_robin.c Tue Sep 16 11:28:46 2008
@@ -905,7 +905,7 @@
                             XML_SUBST_VAR, FLOOD_STRLEN_MAX) == 0) {
               if (subst_entry_child->first_cdata.first 
                   && subst_entry_child->first_cdata.first->text) {
-                (subst_rec_t*)subst_rec_p->subst_var = 
+                ((subst_rec_t*)subst_rec_p)->subst_var = 
                     apr_pstrdup(pool, 
                                 subst_entry_child->first_cdata.first->text);
               }
@@ -915,7 +915,7 @@
                             XML_SUBST_FILE, FLOOD_STRLEN_MAX) == 0) {
               if (subst_entry_child->first_cdata.first 
                   && subst_entry_child->first_cdata.first->text) {
-                (subst_rec_t*)subst_rec_p->subst_file_name = 
+                ((subst_rec_t*)subst_rec_p)->subst_file_name = 
                     apr_pstrdup(pool, 
                                 subst_entry_child->first_cdata.first->text);
               }