summaryrefslogtreecommitdiffstats
path: root/hcid/dbus-rfcomm.c
diff options
context:
space:
mode:
Diffstat (limited to 'hcid/dbus-rfcomm.c')
-rw-r--r--hcid/dbus-rfcomm.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/hcid/dbus-rfcomm.c b/hcid/dbus-rfcomm.c
index 515a55aa..3bae204f 100644
--- a/hcid/dbus-rfcomm.c
+++ b/hcid/dbus-rfcomm.c
@@ -172,34 +172,6 @@ static void pending_connect_free(struct pending_connect *c)
free(c);
}
-static int set_nonblocking(int fd, int *err)
-{
- long arg;
-
- arg = fcntl(fd, F_GETFL);
- if (arg < 0) {
- if (err)
- *err = errno;
- error("fcntl(F_GETFL): %s (%d)", strerror(errno), errno);
- return -1;
- }
-
- /* Return if already nonblocking */
- if (arg & O_NONBLOCK)
- return 0;
-
- arg |= O_NONBLOCK;
- if (fcntl(fd, F_SETFL, arg) < 0) {
- if (err)
- *err = errno;
- error("fcntl(F_SETFL, O_NONBLOCK): %s (%d)",
- strerror(errno), errno);
- return -1;
- }
-
- return 0;
-}
-
static int rfcomm_release(struct rfcomm_node *node, int *err)
{
struct rfcomm_dev_req req;