mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-23 02:01:55 +00:00
Fix incorrect use of SKIP_BACK
This commit is contained in:
parent
985d9b44bd
commit
67518edad1
@ -923,7 +923,7 @@ run_aggregation(struct aggregator_proto *p)
|
|||||||
static void
|
static void
|
||||||
aggregate_on_feed_end(struct channel *C)
|
aggregate_on_feed_end(struct channel *C)
|
||||||
{
|
{
|
||||||
struct aggregator_proto *p = SKIP_BACK(struct aggregator_proto, p, C);
|
struct aggregator_proto *p = SKIP_BACK(struct aggregator_proto, p, C->proto);
|
||||||
|
|
||||||
/* Run aggregation only on feed end from the source channel */
|
/* Run aggregation only on feed end from the source channel */
|
||||||
if (C == p->src)
|
if (C == p->src)
|
||||||
@ -931,9 +931,9 @@ aggregate_on_feed_end(struct channel *C)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
aggregate_on_settle_timer(struct settle *timer)
|
aggregate_on_settle_timer(struct settle *s)
|
||||||
{
|
{
|
||||||
struct aggregator_proto *p = SKIP_BACK(struct aggregator_proto, p, timer);
|
struct aggregator_proto *p = SKIP_BACK(struct aggregator_proto, p, s->tm.data);
|
||||||
run_aggregation(p);
|
run_aggregation(p);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user