Hello,

We've been using flood for a project, and couldn't get revision 672044
to compile in gcc-4.2.3-2ubuntu7 without the attached patch. The error
we got was:

flood_round_robin.c: In function 'round_robin_profile_init':
flood_round_robin.c:910: error: lvalue required as left operand of assignment
flood_round_robin.c:920: error: lvalue required as left operand of assignment

-- 
Man is the only animal that laughs and weeps, for he is the only
animal that is struck with the difference between what things are and
what they ought to be.
 - William Hazlitt

Ohad Lutzky
Index: flood_round_robin.c
===================================================================
--- flood_round_robin.c	(revision 689018)
+++ flood_round_robin.c	(working copy)
@@ -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);
               }

Reply via email to