diff options
Diffstat (limited to 'audio/headset.c')
| -rw-r--r-- | audio/headset.c | 28 | 
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)  | 
