summaryrefslogtreecommitdiffstats
path: root/audio/headset.c
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2007-01-24 19:47:56 +0000
committerClaudio Takahasi <claudio.takahasi@openbossa.org>2007-01-24 19:47:56 +0000
commita0aeaf15caa9e967f6be1a7b3a3087ff9122c7a9 (patch)
treefc5b35918b56238d06934aaffcdf2a9fdaa095fd /audio/headset.c
parent79e768bf14609f8f5a91a249687beac14b68687e (diff)
Moved set_nonblocking to common/dbus.c
Diffstat (limited to 'audio/headset.c')
-rw-r--r--audio/headset.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/audio/headset.c b/audio/headset.c
index 1e7a6aad..55a47e8e 100644
--- a/audio/headset.c
+++ b/audio/headset.c
@@ -132,34 +132,6 @@ static DBusHandlerResult hs_stop(struct headset *hs, DBusMessage *msg);
static void hs_signal(struct headset *hs, const char *name);
static void hs_signal_gain_setting(struct headset *hs, const char *buf);
-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 void pending_connect_free(struct pending_connect *c)
{
if (c->io)