W3C home > Mailing lists > Public > www-lib@w3.org > January to March 2002

Possible bug in HTTimer.

From: Grigory Begelman <gbegelman@hotmail.com>
Date: Thu, 14 Mar 2002 10:38:10 +0000
To: www-lib@w3.org
Message-ID: <F18r6gz1Lz7ccDoXlFg00003ea2@hotmail.com>
Hello,
  File HTTimer.c, line 266, function HTTimer_refresh. This function receives 
the following parameters: HTTimer *timer and ms_t now. But it never uses the 
second parameter:

PUBLIC BOOL HTTimer_refresh (HTTimer * timer, ms_t now) {
  if (timer == NULL || timer->repetitive == NO)
    return NO;
  if (HTTimer_new(timer, timer->cbf, timer->param, timer->millis, YES, YES) 
== NULL)
    return NO;
  return YES;
}

Maybe the new timer should be created with time "now" instead of 
"timer->millis"? Unfortunately I was not able to check it because found no 
comments concerning this function.

Best regards,
Grigory.

_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com
Received on Thursday, 14 March 2002 05:38:42 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:40 GMT