git://scientific.zcu.cz
/
jra1mw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0cefe6
)
correct the order of params
author
Daniel Kouřil
<kouril@ics.muni.cz>
Tue, 17 Jan 2012 20:14:22 +0000
(20:14 +0000)
committer
Daniel Kouřil
<kouril@ics.muni.cz>
Tue, 17 Jan 2012 20:14:22 +0000
(20:14 +0000)
emi.canl.canl-c/src/canl.c
patch
|
blob
|
blame
|
history
diff --git
a/emi.canl.canl-c/src/canl.c
b/emi.canl.canl-c/src/canl.c
index
3303091
..
6da5716
100644
(file)
--- 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;