ccan/io: simplify I/O callbacks.
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 14 Oct 2013 11:01:18 +0000 (21:31 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 14 Oct 2013 11:01:18 +0000 (21:31 +1030)
commit869dc1528e64604e9264c6f12e0f2cb79bf3d79e
treec9467a85b37687d5285896521062957adabdabfc
parent0f16a4197c94bfa84dad56d0cb9a9c20438d0a45
ccan/io: simplify I/O callbacks.

Use a -1 for error codes.  This makes it easier to write your own io funcs.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ccan/io/io.c
ccan/io/io.h
ccan/io/test/run-17-homemade-io.c