[Olsr-cvs] olsrd-current/src process_routes.c, 1.36, 1.37 process_routes.h, 1.11, 1.12

Bernd Petrovitsch (spam-protected)
Sun Sep 16 23:14:27 CEST 2007


Update of /cvsroot/olsrd/olsrd-current/src
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv10290/src

Modified Files:
	process_routes.c process_routes.h 
Log Message:
* const-ified functions

Index: process_routes.c
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/src/process_routes.c,v
retrieving revision 1.36
retrieving revision 1.37
diff -C2 -d -r1.36 -r1.37
*** process_routes.c	5 Sep 2007 16:17:36 -0000	1.36
--- process_routes.c	16 Sep 2007 21:14:25 -0000	1.37
***************
*** 78,89 ****
   */
  olsr_u8_t
! olsr_rt_flags(struct rt_entry *rt)
  {
!   struct rt_nexthop *nh;
    olsr_u8_t flags;
  
    flags = (RTF_UP);
  
!   if (rt->rt_dst.prefix_len == olsr_host_rt_maxplen()) {
      flags |= RTF_HOST;
    }
--- 78,89 ----
   */
  olsr_u8_t
! olsr_rt_flags(const struct rt_entry *rt)
  {
!   const struct rt_nexthop *nh;
    olsr_u8_t flags;
  
    flags = (RTF_UP);
  
!   if (rt->rt_dst.prefix_len == olsr_cnf->maxplen) {
      flags |= RTF_HOST;
    }
***************
*** 264,268 ****
  olsr_enqueue_rt(struct list_node *head_node, struct rt_entry *rt)
  {
!   struct rt_nexthop *nh;
  
    /* if this node is already on some changelist we are done */
--- 264,268 ----
  olsr_enqueue_rt(struct list_node *head_node, struct rt_entry *rt)
  {
!   const struct rt_nexthop *nh;
  
    /* if this node is already on some changelist we are done */

Index: process_routes.h
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/src/process_routes.h,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** process_routes.h	5 Sep 2007 16:11:11 -0000	1.11
--- process_routes.h	16 Sep 2007 21:14:25 -0000	1.12
***************
*** 86,90 ****
  
  olsr_u8_t
! olsr_rt_flags(struct rt_entry *);
  
  #endif
--- 86,90 ----
  
  olsr_u8_t
! olsr_rt_flags(const struct rt_entry *);
  
  #endif





More information about the Olsr-cvs mailing list