mirror of
https://gitlab.labs.nic.cz/labs/bird.git
synced 2024-05-11 16:54:54 +00:00
Fininshing integrated OSPF.
This commit is contained in:
@@ -27,7 +27,7 @@ event_list global_event_list;
|
||||
inline void
|
||||
ev_postpone(event *e)
|
||||
{
|
||||
if (e->n.next)
|
||||
if (ev_active(e))
|
||||
{
|
||||
rem_node(&e->n);
|
||||
e->n.next = NULL;
|
||||
|
||||
@@ -30,4 +30,11 @@ void ev_schedule(event *);
|
||||
void ev_postpone(event *);
|
||||
int ev_run_list(event_list *);
|
||||
|
||||
static inline int
|
||||
ev_active(event *e)
|
||||
{
|
||||
return e->n.next != NULL;
|
||||
}
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user