Added usage of olsr_bool for boolean use
[olsrd.git] / src / mpr.c
index 2542a8d..2a345cd 100644 (file)
--- a/src/mpr.c
+++ b/src/mpr.c
@@ -19,7 +19,7 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  * 
  * 
- * $Id: mpr.c,v 1.8 2004/11/03 09:22:59 kattemat Exp $
+ * $Id: mpr.c,v 1.9 2004/11/03 10:00:11 kattemat Exp $
  *
  */
 
@@ -156,7 +156,7 @@ olsr_chosen_mpr(struct neighbor_entry *one_hop_neighbor, olsr_u16_t *two_hop_cov
 
   //printf("PRE COUNT: %d\n\n", count);
 
-  one_hop_neighbor->is_mpr = 1; //NBS_MPR;
+  one_hop_neighbor->is_mpr = TRUE; //NBS_MPR;
   
   for(second_hop_entries = one_hop_neighbor->neighbor_2_list.next;
       second_hop_entries != &one_hop_neighbor->neighbor_2_list;
@@ -273,8 +273,8 @@ olsr_clear_mprs()
          /* Clear MPR selection */
          if(a_neighbor->is_mpr)
            {
-             a_neighbor->was_mpr = 1;
-             a_neighbor->is_mpr = 0;
+             a_neighbor->was_mpr = TRUE;
+             a_neighbor->is_mpr = FALSE;
            }
 
          /* Clear two hop neighbors coverage count */
@@ -312,7 +312,7 @@ olsr_check_mpr_changes()
        {
          if(a_neighbor->was_mpr)
            {
-             a_neighbor->was_mpr = 0;
+             a_neighbor->was_mpr = FALSE;
              if(!a_neighbor->is_mpr)
                retval = 1;
            }
@@ -589,7 +589,7 @@ olsr_optimize_mpr_set()
                  if(remove)
                    {
                      olsr_printf(3, "MPR OPTIMIZE: removiong mpr %s\n\n", olsr_ip_to_string(&a_neighbor->neighbor_main_addr));
-                     a_neighbor->is_mpr = 0;
+                     a_neighbor->is_mpr = FALSE;
                    }