X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fio%2Ftest%2Frun-17-homemade-io.c;h=00fbf2233c59c9132c3f1c74a40e630429a64bf5;hb=9e02685a6216720d37848a332187e3745b7f981e;hp=de7ce7510d9915e4c2637a5e1dfb06b62aa773cb;hpb=869dc1528e64604e9264c6f12e0f2cb79bf3d79e;p=ccan diff --git a/ccan/io/test/run-17-homemade-io.c b/ccan/io/test/run-17-homemade-io.c index de7ce751..00fbf223 100644 --- a/ccan/io/test/run-17-homemade-io.c +++ b/ccan/io/test/run-17-homemade-io.c @@ -81,7 +81,6 @@ static struct io_plan io_read_packet(struct packet *pkt, plan.next_arg = arg; plan.pollflag = POLLIN; - io_plan_debug(&plan); return plan; } @@ -90,7 +89,7 @@ static void init_conn(int fd, struct packet *pkt) ok1(pkt->state == 0); pkt->state++; - io_set_finish(io_new_conn(fd, io_read_packet(pkt, io_close, pkt)), + io_set_finish(io_new_conn(fd, io_read_packet(pkt, io_close_cb, pkt)), finish_ok, pkt); }