X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fio%2Ftest%2Frun-18-errno.c;fp=ccan%2Fio%2Ftest%2Frun-18-errno.c;h=904a20cafc4cc735339e216c1fcd93c99e528216;hp=75d84cca1f64a5520698597352769ca3e14f1e92;hb=31c816a6a9a2037d8860d56814835d9ac488d52f;hpb=96dcdfbf1a400f7cb43cf3f0761f52fd6de9ff65 diff --git a/ccan/io/test/run-18-errno.c b/ccan/io/test/run-18-errno.c index 75d84cca..904a20ca 100644 --- a/ccan/io/test/run-18-errno.c +++ b/ccan/io/test/run-18-errno.c @@ -27,8 +27,8 @@ static struct io_plan *init_conn(struct io_conn *conn, int *state) { if (*state == 0) { (*state)++; - errno = 100; io_set_finish(conn, finish_100, state); + errno = 100; return io_close(conn); } else { ok1(*state == 2);