Ignore:
Timestamp:
10/27/08 13:38:07 (5 years ago)
Author:
BrainSlayer
Message:

quagga update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/router/quagga/bgpd/bgp_advertise.c

    r10334 r10627  
    7474 
    7575static int 
    76 baa_hash_cmp (void *p1, void *p2) 
    77 { 
    78   struct bgp_advertise_attr * baa1 = (struct bgp_advertise_attr *) p1; 
    79   struct bgp_advertise_attr * baa2 = (struct bgp_advertise_attr *) p2; 
     76baa_hash_cmp (const void *p1, const void *p2) 
     77{ 
     78  const struct bgp_advertise_attr * baa1 = p1; 
     79  const struct bgp_advertise_attr * baa2 = p2; 
    8080 
    8181  return attrhash_cmp (baa1->attr, baa2->attr); 
     
    224224  struct bgp_advertise *adv; 
    225225 
    226 #ifdef DISABLE_BGP_ANNOUNCE 
    227   return; 
    228 #endif /* DISABLE_BGP_ANNOUNCE */ 
     226  if (DISABLE_BGP_ANNOUNCE) 
     227    return; 
    229228 
    230229  /* Look for adjacency information. */ 
     
    278277  struct bgp_advertise *adv; 
    279278 
    280 #ifdef DISABLE_BGP_ANNOUNCE 
    281   return; 
    282 #endif /* DISABLE_BGP_ANNOUNCE */ 
     279  if (DISABLE_BGP_ANNOUNCE) 
     280    return; 
    283281 
    284282  /* Lookup existing adjacency, if it is not there return immediately.  */ 
Note: See TracChangeset for help on using the changeset viewer.