[quagga-dev 3566] Bug in file: thread.c function: funcname_thread_add_timer_timeval

Yossi Boaron Yossi.Boaron at veraznetworks.com
Tue Aug 2 16:17:52 BST 2005


Hi

In File thread.c function funcname_thread_add_timer_timeval

In this function there's a call to the function timeval_adjust,the parameter to timeval_adjust is transferred  by value , and hence this function will not change the parameter value.


the relevant code :

  struct timeval timer_now;
.....
....

  timer_now.tv_sec += time_relative->tv_sec;
  timer_now.tv_usec += time_relative->tv_usec;
  timeval_adjust (timer_now);
  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quagga.net/pipermail/quagga-dev/attachments/20050802/f356de8a/attachment-0001.html>


More information about the Quagga-dev mailing list