summaryrefslogtreecommitdiffstats
path: root/hcid/dbus-rfcomm.c
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2007-01-25 17:27:52 +0000
committerClaudio Takahasi <claudio.takahasi@openbossa.org>2007-01-25 17:27:52 +0000
commit97e3051ec51ac5bdcb37a371249360163eaf5709 (patch)
tree9b73ed207630e7e9ce92e5dd4ff9fccccbae4e24 /hcid/dbus-rfcomm.c
parente28ba76d230192a1a970819cc3588b986a624ea2 (diff)
set_nonblocking: removed err argument
Diffstat (limited to 'hcid/dbus-rfcomm.c')
-rw-r--r--hcid/dbus-rfcomm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/hcid/dbus-rfcomm.c b/hcid/dbus-rfcomm.c
index 3bae204f..d99939d1 100644
--- a/hcid/dbus-rfcomm.c
+++ b/hcid/dbus-rfcomm.c
@@ -448,8 +448,10 @@ static int rfcomm_connect(DBusConnection *conn, DBusMessage *msg, bdaddr_t *src,
goto failed;
}
- if (set_nonblocking(sk, err) < 0)
+ if (set_nonblocking(sk) < 0) {
+ *err = errno;
goto failed;
+ }
/* So we can reply to the message later */
c->msg = dbus_message_ref(msg);