From: Daniel KouĊ™il Date: Tue, 17 Jan 2012 20:14:22 +0000 (+0000) Subject: correct the order of params X-Git-Tag: emi-canl-c_R_1_0_0_0~41 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=293d2e481329f17fe37f92b5603b30e22e2a5549;p=jra1mw.git correct the order of params --- 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;