]> git.ozlabs.org Git - ccan/commitdiff
ccan/io: have io_plan mappable back to io_conn.
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 28 Feb 2019 05:24:09 +0000 (15:54 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 28 Feb 2019 05:24:09 +0000 (15:54 +1030)
io_conn contains two plans: by knowing what plan this is, it can be cast
back into the io_conn.  That helps for the next patch.

We also remove the strange logic where io_duplex() would return a
magic, invalid io_plan pointer.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>

No differences found