Diff for /src/usr.sbin/mrouted/callout.c between versions 1.3 and 1.4

version 1.3, 2003/11/03 19:31:38 version 1.4, 2003/11/22 11:38:13
Line 34  static void print_Q(void); Line 34  static void print_Q(void);
 #endif  #endif
   
 void  void
callout_init()callout_init(void)
 {  {
     Q = (struct timeout_q *) 0;      Q = (struct timeout_q *) 0;
 }  }
   
 void  void
free_all_callouts()free_all_callouts(void)
 {  {
     struct timeout_q *p;      struct timeout_q *p;
   
Line 57  free_all_callouts() Line 57  free_all_callouts()
  * happen.   * happen.
  */   */
 void  void
age_callout_queue(elapsed_time)age_callout_queue(int elapsed_time)
    int elapsed_time; 
 {  {
     struct timeout_q *ptr;      struct timeout_q *ptr;
     int i = 0;      int i = 0;
Line 84  age_callout_queue(elapsed_time) Line 83  age_callout_queue(elapsed_time)
  * Return -1 if there are no events pending.   * Return -1 if there are no events pending.
  */   */
 int  int
timer_nextTimer()timer_nextTimer(void)
 {  {
     if (Q) {      if (Q) {
         if (Q->time < 0) {          if (Q->time < 0) {

Removed from v.1.3  
changed lines
  Added in v.1.4