[Xorp-cvs] XORP cvs commit: xorp/libxorp
Atanu Ghosh
atanu@icir.org
Sun, 28 Aug 2005 20:02:57 GMT
CVSROOT: /usr/local/www/data/cvs
Module name: xorp
Changes by: atanu@xorpc.icir.org 2005-08-28 20:02:57 UTC
XORP CVS repository
Modified files:
libxorp timer.cc
Log message:
In the construct below system_gettimeofday() is static so with gcc29
it looks like the construtor is not called.
TimerList(&s).system_gettimeofday(tv);
Change the code to instantiate a TimerList and then call the
system_gettimeofday() method.
TimerList timer = TimerList(&s);
timer.system_gettimeofday(tv);
Previously the system_gettimeofday() was being called
recursively. This problem only manifests itself in regression tests
that don't have an EventLoop and --enable-callback-debug has used as
an argument to configure.
Revision Changes Path
1.26 +3 -2; commitid: 12df2431218707ea6; xorp/libxorp/timer.cc