From 293d2e481329f17fe37f92b5603b30e22e2a5549 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Daniel=20Kou=C5=99il?= Date: Tue, 17 Jan 2012 20:14:22 +0000 Subject: [PATCH] correct the order of params --- emi.canl.canl-c/src/canl.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/emi.canl.canl-c/src/canl.c b/emi.canl.canl-c/src/canl.c index 3303091..6da5716 100644 --- a/emi.canl.canl-c/src/canl.c +++ b/emi.canl.canl-c/src/canl.c @@ -227,7 +227,8 @@ static int try_connect(glb_ctx *glb_cc, io_handler *io_cc, char *addr, if (err) { close(io_cc->sock); io_cc->sock = -1; - return errno; + return set_error(glb_cc, errno, posix_error, + "Failed to open network connection"); } return 0; @@ -257,7 +258,7 @@ canl_io_accept(canl_ctx cc, canl_io_handler io, int new_fd, if (err) goto end; - err = mech->accept(glb_cc, io_cc, timeout, conn_ctx); + err = mech->accept(glb_cc, io_cc, conn_ctx, timeout); if (err) goto end; -- 1.8.2.3