git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/doldaconnect@590
959494ce-11ee-0310-bf91-
de5d638817bd
FILE *pfstream, *confstream;
int delay, immsyslog;
struct module *mod;
FILE *pfstream, *confstream;
int delay, immsyslog;
struct module *mod;
- struct timer *timer, *ntimer;
struct child *child;
double now;
struct child *child;
double now;
}
pollsocks(delay);
now = ntime();
}
pollsocks(delay);
now = ntime();
- for(timer = timers; timer != NULL; timer = ntimer)
- ntimer = timer->next;
- if(now < timer->at)
- continue;
- if(timer->prev != NULL)
- timer->prev->next = timer->next;
- if(timer->next != NULL)
- timer->next->prev = timer->prev;
- if(timer == timers)
- timers = timer->next;
- timer->func(0, timer->data);
- free(timer);
- }
+ for(timer = timers; timer != NULL; timer = timer->next)
+ {
+ if(now < timer->at)
+ continue;
+ if(timer->prev != NULL)
+ timer->prev->next = timer->next;
+ if(timer->next != NULL)
+ timer->next->prev = timer->prev;
+ if(timer == timers)
+ timers = timer->next;
+ timer->func(0, timer->data);
+ free(timer);
+ break;
+ }
+ } while(timer != NULL);
do
{
for(child = children; child != NULL; child = child->next)
do
{
for(child = children; child != NULL; child = child->next)