diff options
author | Jan Moskyto Matejka <mq@ucw.cz> | 2016-04-04 16:17:11 +0200 |
---|---|---|
committer | Jan Moskyto Matejka <mq@ucw.cz> | 2016-04-07 10:08:23 +0200 |
commit | 4bdf1881dc6230b742d7efcaad8eeac4ed25f445 (patch) | |
tree | b6902c8eeef29ee1d0a95d64bdbf5fc7e3ce26fe /proto/pipe | |
parent | 0c8c8151fc1fb0dbfcd682153f50192ea1369884 (diff) |
Channelize: rt_notify arg conversion table -> channel
Diffstat (limited to 'proto/pipe')
-rw-r--r-- | proto/pipe/pipe.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/proto/pipe/pipe.c b/proto/pipe/pipe.c index 57db3e8b..f3df3e71 100644 --- a/proto/pipe/pipe.c +++ b/proto/pipe/pipe.c @@ -44,10 +44,10 @@ #include "pipe.h" static void -pipe_rt_notify(struct proto *P, rtable *src_table, net *n, rte *new, rte *old, ea_list *attrs) +pipe_rt_notify(struct proto *P, struct channel *src_ch, net *n, rte *new, rte *old, ea_list *attrs) { struct pipe_proto *p = (void *) P; - struct channel *dst = (src_table == p->pri->table) ? p->sec : p->pri; + struct channel *dst = (src_ch == p->pri) ? p->sec : p->pri; struct rte_src *src; net *nn; @@ -89,9 +89,9 @@ pipe_rt_notify(struct proto *P, rtable *src_table, net *n, rte *new, rte *old, e src = old->attrs->src; } - src_table->pipe_busy = 1; + src_ch->table->pipe_busy = 1; rte_update2(dst, nn, e, src); - src_table->pipe_busy = 0; + src_ch->table->pipe_busy = 0; } static int |